• Api Documentation
  • Source Code
Search Results for

    Show / Hide Table of Contents
    • SharpShellLink
      • Shortcut
    • SharpShellLink.Const
      • KNOWNFOLDERID
    • SharpShellLink.Flags
      • CSIDL
      • CommonNetworkRelativeLinkFlags
      • DriveType
      • FileAttributesFlags
      • FillAttributes
      • FontFamily
      • FontPitch
      • HotKeyFlags
      • LinkFlags
      • LinkInfoFlags
      • ModifierKeys
      • NetworkProviderType
      • ShowCommand
      • VirtualKeyCodes
    • SharpShellLink.PropertyStore
      • IntegerName
      • PropertyType
      • SerializedPropertyStorage
      • SerializedPropertyStore
      • SerializedPropertyValue
      • StringName
      • Structure
      • TypedPropertyValue
    • SharpShellLink.Structures
      • BlockSignature
      • CommonNetworkRelativeLink
      • ConsoleDataBlock
      • ConsoleFEDataBlock
      • CplLinkTargetIDList
      • DarwinDataBlock
      • EnvironmentVariableDataBlock
      • ExtraData
      • ExtraDataBlock
      • IDList
      • IconEnvironmentDataBlock
      • ItemID
      • KnownFolderDataBlock
      • LinkInfo
      • LinkTargetIDList
      • PropertyStoreDataBlock
      • ShellLinkHeader
      • ShimDataBlock
      • SpecialFolderDataBlock
      • StringData
      • Structure
      • TerminalBlock
      • TrackerDataBlock
      • VistaAndAboveIDListDataBlock
      • VolumeID

    Enum LinkFlags

    The LinkFlags structure defines bits that specify which shell link structures are present in the file format after the ShellLinkHeader structure

    Namespace: SharpShellLink.Flags
    Assembly: SharpShellLink.dll
    Syntax
    [Flags]
    public enum LinkFlags : uint

    Fields

    Name Description
    AllowLinkToLink

    Creating a link that references another link is enabled. Otherwise, specifying a link as the target IDList SHOULD NOT be allowed.

    DisableKnownFolderAlias

    If the link has a KnownFolderDataBlock, the unaliased form of the known folder IDList SHOULD be used when translating the target IDList at the time that the link is loaded.

    DisableKnownFolderTracking

    The SpecialFolderDataBlock and the KnownFolderDataBlock are ignored when loading the shell link. If this bit is set, these extra data blocks SHOULD NOT be saved when saving the shell link.

    DisableLinkPathTracking

    The EnvironmentVariableDataBlock is ignored.

    EnableTargetMetadata

    The shell link attempts to collect target properties and store them in the PropertyStoreDataBlock when the link target is set.

    ForceNoLinkInfo

    The LinkInfo structure is ignored.

    ForceNoLinkTrack

    The TrackerDataBlock (section 2.5.10) is ignored.

    HasArguments

    The shell link is saved with command line arguments. If this bit is set, a COMMAND_LINE_ARGUMENTS StringData structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    HasDarwinID

    The shell link is saved with a DarwinDataBlock.

    HasExpIcon

    The shell link is saved with an IconEnvironmentDataBlock

    HasExpString

    The shell link is saved with an EnvironmentVariableDataBlock.

    HasIconLocation

    The shell link is saved with an icon location string. If this bit is set, an ICON_LOCATION StringData structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    HasLinkInfo

    The shell link is saved with link information. If this bit is set, a LinkInfo structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    HasLinkTargetIDList

    The shell link is saved with an item ID list (IDList). If this bit is set, a LinkTargetIDList structure MUST follow the ShellLinkHeader. If this bit is not set, this structure MUST NOT be present.

    HasName

    The shell link is saved with a name string. If this bit is set, a NAME_STRING StringData structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    HasRelativePath

    The shell link is saved with a relative path string. If this bit is set, a RELATIVE_PATH StringData structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    HasWorkingDir

    The shell link is saved with a working directory string. If this bit is set, a WORKING_DIR StringData structure MUST be present. If this bit is not set, this structure MUST NOT be present.

    IsUnicode

    The shell link contains Unicode encoded strings. This bit SHOULD be set. If this bit is set, the StringData section contains Unicode-encoded strings; otherwise, it contains strings that are encoded using the system default code page.

    KeepLocalIDListForUNCTarget

    When the target is a UNC name that refers to a location on a local machine, the local path IDList in the PropertyStoreDataBlock SHOULD be stored, so it can be used when the link is loaded on the local machine.

    NoPidlAlias

    The file system location is represented in the shell namespace when the path to an item is parsed into an IDList.

    PreferEnvironmentPath

    The target IDList SHOULD NOT be stored; instead, the path specified in the EnvironmentVariableDataBlock SHOULD be used to refer to the target.

    RunAsUser

    The application is run as a different user when the target of the shell link is activated.

    RunInSeparateProcess

    The target is run in a separate virtual machine when launching a link target that is a 16-bit application.

    RunWithShimLayer

    The shell link is saved with a ShimDataBlock

    UnaliasOnSave

    When saving a link for which the target IDList is under a known folder, either the unaliased form of that known folder or the target IDList SHOULD be used.

    Unused1

    A bit that is undefined and MUST be ignored.

    Unused2

    A bit that is undefined and MUST be ignored.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright (c) 2017 Securify B.V., 2026 Jérémy Ansel