Shell32SHCreateItemFromIDList(PIDL, Guid, Object) Method

Creates and initializes a Shell item object from a pointer to an item identifier list (PIDL).

The resulting shell item object supports the IShellItem interface.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", ExactSpelling = true)]
public static HResult SHCreateItemFromIDList(
	PIDL pidl,
	ref Guid refIid,
	out Object refShellItem
)

Parameters

pidl  PIDL
The source PIDL.
refIid  Guid
A reference to the IID of the interface to retrieve through refShellItem, typically IID_IShellItem or IID_IShellItem2.
refShellItem  Object
When this function returns, contains the interface pointer requested in refIid. This will usually be IShellItem or IShellItem2.

Return Value

HResult
If this function succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

Remarks

See Also