Skip to content

Latest commit

 

History

History
310 lines (156 loc) · 6.93 KB

PyITransferSource.md

File metadata and controls

310 lines (156 loc) · 6.93 KB

PyITransferSource

PyITransferSource Object

Implemented by shell folders that can act as the source of shell item operations

Methods

int = Advise(Sink) Connects an advise sink to receive notifications

Parameters

PyITransferSource.ApplyPropertiesToItem

PyIShellItem = ApplyPropertiesToItem(Source) Changes an item's properties as specified by PyITransferSource::SetProperties

Parameters

  • Source : PyIShellItem

    Item whose properties are to be changed

PyITransferSource.EnterFolder

int = EnterFolder(ChildFolderDest) Informs the copy engine that a folder will be the target of a file operation

Parameters

  • ChildFolderDest : PyIShellItem

    The destination folder for the operation

PyITransferSource.GetDefaultDestinationName

str = GetDefaultDestinationName(Source, ParentDest

) Determines the name of an item as it would appear in a given folder

Parameters

PyITransferSource.LeaveFolder

int = LeaveFolder(ChildFolderDest) Informs the copy engine that the operation on a destination folder is finished

Parameters

(int, PyIShellItem = LinkItem(Source, ParentDest

, NewName

, flags

) Not implemented, according to MSDN

Parameters

  • Source : PyIShellItem

    Description for psiSource

  • ParentDest : PyIShellItem

    Description for psiParentDest

  • NewName : str

    Description for NewName

  • flags : int

    Combination of shellcon.TSF_* flags

(int, PyIShellItem = MoveItem(Item, ParentDst

, NameDst

, flags

) Moves a shell item into another folder

Parameters

  • Item : PyIShellItem

    Item to be moved

  • ParentDst : PyIShellItem

    The folder into which it will be moved

  • NameDst : unicode

    New name for item after move, None to keep same name

  • flags : int

    Combination of shellcon.TSF_* flags

Return Value

Returns the HRESULT from the operation and the new shell item, which may be None

when the code in one of the informational COPYENGINE_S_* values. See MSDN for descriptions

of expected actions for specific error codes.

(int, PyIShellItemResources) = OpenItem(Item, flags

, riid

) Initiates the copying of an item

Parameters

  • Item : PyIShellItem

    The item to be copied.

  • flags : int

    Combination of shellcon.TSF_* flags

  • riid=IID_IShellItemResources : PyIID

    The interface to return

PyITransferSource.RecycleItem

(int, PyIShellItem = RecycleItem(Source, ParentDest

, flags

) Moves an item to the recycle bin

Parameters

  • Source : PyIShellItem

    The item to be recycled

  • ParentDest : PyIShellItem

    Shell item representing the recycle bin

  • flags : int

    Combination of shellcon.TSF_* flags

int = RemoveItem(Source, flags

) Deletes an item without recycling

Parameters

  • Source : PyIShellItem

    The item to be deleted

  • flags : int

    Combination of shellcon.TSF_* flags

Return Value

Returns the HRESULT of the operation

(int, PyIShellItem) = RenameItem(Source, NewName

, flags

) Renames a shell item

Parameters

  • Source : PyIShellItem

    Item to be renamed

  • NewName : str

    The name to be given to the item

  • flags : int

    Combination of shellcon.TSF_* flags

PyITransferSource.SetProperties

SetProperties(proparray) Specifies changes to be applied to items' properties

Parameters

Unadvise(Cookie) Disconnects an event sink

Parameters