Some of the functions required to perform the tasks specified in the title of this paragraph have been moved to a separate module Lnk.pas.
CreateLink, CreateLinkDesc - allow you to create a shortcut;
ResolveLink, IsLink2RecycleBin - help in analyzing the existing label;
FileTypeReg, FileTypeRegEx, FileTypeReg2 - useful for creating an application association with specified file extensions;
FileTypeGetReg - returns information about the current association of a file extension.
Another package, KOLNKDir, is designed to make it easier to locate system directories such as My Documents, Programs, etc. Author Dmitry Zharov aka Gandalf.