shell.SHCreateItemFromParsingName

PyIShellItem = SHCreateItemFromParsingName(name, ctx , riid )

Creates and initializes a Shell item object from a parsing name.

Parameters

name : str

The display name of the item to create, eg a file path

ctx : PyIBindCtx

Bind context, can be None

riid : PyIID

The interface to create, IID_IShellItem or IID_IShellItem2

Comments

This function is only available on Vista and later; a COM exception with E_NOTIMPL will be thrown if the function can't be located.