Exported Constants
The lnk unit exports the following constants:
lFlag Array IDs
These are used to identify the boolean items in the lnk\lFlag array. They are used to store what information is contained in the shortcut file.
LNK_SHELL_PRESENT = 0
LNK_POINTS_TO_FILE_OR_DIR = 1
LNK_HAS_DESCRIPTION = 2
LNK_HAS_RELATIVE_PATH = 3
LNK_HAS_WORKING_DIR = 4
LNK_HAS_ARGUMENTS = 5
LNK_HAS_CUSTOM_ICON = 6
lAttribute Array IDs
These are used to identify the boolean items in the lnk\lAttribute array. They are used to show what the properties of the shortcut target are.
LNK_READONLY = 0
LNK_HIDDEN = 1
LNK_SYSTEM = 2
LNK_VOLUME_LABEL = 3
LNK_DIRECTORY = 4
LNK_HAS_BEEN_MODIFIED = 5
LNK_ENCRYPTED = 6
LNK_NORMAL = 7
LNK_TEMP = 8
LNK_SPARSE = 9
LNK_REPARSE_DATA = 10
LNK_COMPRESSED = 11
LNK_OFFLINE = 12
lVolume Array IDs
These are used to identify the boolean items in the lnk\lVolume array. They are used to show what type of volume information data the shortcut file holds.
LNK_VOLUME_LOCAL = 0
LNK_VOLUME_NETWORK = 1
lVolumeType
The lnk\lVolumeType integer should be one of these.
LNK_VOLUME_TYPE_UNKNOWN = 0
LNK_VOLUME_TYPE_NO_ROOT = 1
LNK_VOLUME_TYPE_REMOVABLE = 2
LNK_VOLUME_TYPE_FIXED = 3
LNK_VOLUME_TYPE_REMOTE = 4
LNK_VOLUME_TYPE_OPTICAL = 5
LNK_VOLUME_TYPE_RAM = 6
lShowWnd
The lnk\lShowWnd integer should be one of these.
1,2 & 3 are available in the shortcut properties menu, some may be invalid.
LNK_SWND_HIDE = 0
LNK_SWND_NORMAL = 1
LNK_SWND_SHOWMINIMIZED = 2
LNK_SWND_SHOWMAXIMIZED = 3
LNK_SWND_SHOWNOACTIVATE = 4
LNK_SWND_SHOW = 5
LNK_SWND_MINIMIZE = 6
LNK_SWND_SHOWMINNOACTIVE = 7
LNK_SWND_SHOWNA = 8
LNK_SWND_RESTORE = 9
LNK_SWND_SHOWDEFAULT = 10