This content is provided AS IS for archive purposes only. Content may be out of date with no guarantee of correctness.

Exported Constants - Lnk for Cobra - Static

Main Article

Exported Constants - Lnk for Cobra

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.lFlag[CONSTANT]
LNK_SHELL_PRESENT               = 0 ; Export    // The shell item id list is present
LNK_POINTS_TO_FILE_OR_DIR       = 1 ; Export    // Points to a file or directory
LNK_HAS_DESCRIPTION             = 2 ; Export    // Has a description string
LNK_HAS_RELATIVE_PATH           = 3 ; Export    // Has a relative path string
LNK_HAS_WORKING_DIR             = 4 ; Export    // Has a working directory
LNK_HAS_ARGUMENTS               = 5 ; Export    // Has command line arguments.
LNK_HAS_CUSTOM_ICON             = 6 ; Export    // Has a custom icon / default icon

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.lAttribute[CONSTANT]
LNK_READONLY                    = 0 ; Export    // Target is read-only
LNK_HIDDEN                      = 1 ; Export    // Target is hidden
LNK_SYSTEM                      = 2 ; Export    // Target is a system file
LNK_VOLUME_LABEL                = 3 ; Export    // Target is a volume label (impossible?)
LNK_DIRECTORY                   = 4 ; Export    // Target is a directory
LNK_HAS_BEEN_MODIFIED           = 5 ; Export    // Target has been modified since last backup. (archive)
LNK_ENCRYPTED                   = 6 ; Export    // Target is encrypted (NTFS EFS)
LNK_NORMAL                      = 7 ; Export    // Target is "normal"?
LNK_TEMP                        = 8 ; Export    // Target is temporary
LNK_SPARSE                      = 9 ; Export    // Target is a sparse file
LNK_REPARSE_DATA                = 10 ; Export   // Target has reparse point data
LNK_COMPRESSED                  = 11 ; Export   // Target is compressed
LNK_OFFLINE                     = 12 ; Export   // Target is offline

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.lVolume[CONSTANT}
LNK_VOLUME_LOCAL                = 0 ; Export    // Available on a local volume
LNK_VOLUME_NETWORK              = 1 ; Export    // Available on a network share

lVolumeType

The lnk.lVolumeType integer should be one of these.

// lnk.lVolumeType
LNK_VOLUME_TYPE_UNKNOWN         = 0 ; Export
LNK_VOLUME_TYPE_NO_ROOT         = 1 ; Export
LNK_VOLUME_TYPE_REMOVABLE       = 2 ; Export    // Floppy, zip, etc
LNK_VOLUME_TYPE_FIXED           = 3 ; Export    // Hard disk
LNK_VOLUME_TYPE_REMOTE          = 4 ; Export    // Network drive
LNK_VOLUME_TYPE_OPTICAL         = 5 ; Export    // CD / DVD
LNK_VOLUME_TYPE_RAM             = 6 ; Export    // RAM Drive

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.lShowWnd
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

Stay Subscribed

@golightlyb, subscribe to the RSS feed or get updates by e-mail.

You can also contact me directly - I make an effort to reply to every e-mail.


Login
v0.34.archive