Skip to content

Latest commit

 

History

History
96 lines (49 loc) · 2.47 KB

PyIShellLinkDataList.md

File metadata and controls

96 lines (49 loc) · 2.47 KB

PyIShellLinkDataList

PyIShellLinkDataList Object

Interface to a link's extra data blocks. Can be obtained from PyIShellLink

by calling QueryInterface with IID_IShellLinkDataList

Methods

AddDataBlock(DataBlock) Inserts a data block into the link

Parameters

  • DataBlock : dict

    Contents are dependent on type of data block being added

Comments

Input should be one of NT_CONSOLE_PROPS, NT_FE_CONSOLE_PROPS, EXP_SPECIAL_FOLDER,

EXP_DARWIN_LINK, or EXP_SZ_LINK. Expected form is indicated by the Signature member.

PyIShellLinkDataList.CopyDataBlock

dict = CopyDataBlock(Sig) Retrieves the specified data block from the link

Parameters

  • Sig : int

    The type of data block to retrieve, one of the shellcon.*_SIG constants

Return Value

The returned dictionary will contain different information depending on the value passed in

int = GetFlags() Retrieves the link's flags

Return Value

Returns combination of shellcon.SLDF_* flags

PyIShellLinkDataList.RemoveDataBlock

RemoveDataBlock(Sig) Deletes one of the link's data blocks

Parameters

  • Sig : int

    Identifies which block is to be removed, one of shellcon.*_SIG constants

SetFlags(Flags) Sets the flags indicating which data blocks are present

Parameters

  • Flags : int

    Combination of shellcon.SLDF_* flags