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 ; Export
LNK_POINTS_TO_FILE_OR_DIR = 1 ; Export
LNK_HAS_DESCRIPTION = 2 ; Export
LNK_HAS_RELATIVE_PATH = 3 ; Export
LNK_HAS_WORKING_DIR = 4 ; Export
LNK_HAS_ARGUMENTS = 5 ; Export
LNK_HAS_CUSTOM_ICON = 6 ; Export
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 ; Export
LNK_HIDDEN = 1 ; Export
LNK_SYSTEM = 2 ; Export
LNK_VOLUME_LABEL = 3 ; Export
LNK_DIRECTORY = 4 ; Export
LNK_HAS_BEEN_MODIFIED = 5 ; Export
LNK_ENCRYPTED = 6 ; Export
LNK_NORMAL = 7 ; Export
LNK_TEMP = 8 ; Export
LNK_SPARSE = 9 ; Export
LNK_REPARSE_DATA = 10 ; Export
LNK_COMPRESSED = 11 ; Export
LNK_OFFLINE = 12 ; Export
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 ; Export
LNK_VOLUME_NETWORK = 1 ; Export
lVolumeType
The lnk.lVolumeType integer should be one of these.
LNK_VOLUME_TYPE_UNKNOWN = 0 ; Export
LNK_VOLUME_TYPE_NO_ROOT = 1 ; Export
LNK_VOLUME_TYPE_REMOVABLE = 2 ; Export
LNK_VOLUME_TYPE_FIXED = 3 ; Export
LNK_VOLUME_TYPE_REMOTE = 4 ; Export
LNK_VOLUME_TYPE_OPTICAL = 5 ; Export
LNK_VOLUME_TYPE_RAM = 6 ; Export
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 ; Export
LNK_SWND_NORMAL = 1 ; Export
LNK_SWND_SHOWMINIMIZED = 2 ; Export
LNK_SWND_SHOWMAXIMIZED = 3 ; Export
LNK_SWND_SHOWNOACTIVATE = 4 ; Export
LNK_SWND_SHOW = 5 ; Export
LNK_SWND_MINIMIZE = 6 ; Export
LNK_SWND_SHOWMINNOACTIVE = 7 ; Export
LNK_SWND_SHOWNA = 8 ; Export
LNK_SWND_RESTORE = 9 ; Export
LNK_SWND_SHOWDEFAULT = 10 ; Export