Shell32SHCreateItemFromIDList(PIDL, Guid, IShellItem) 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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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 IShellItem refShellItem
)
<DllImportAttribute("Shell32.dll", ExactSpelling := true>]
Public Shared Function SHCreateItemFromIDList (
pidl As PIDL,
ByRef refIid As Guid,
<OutAttribute> ByRef refShellItem As IShellItem
) As HResult
Dim pidl As PIDL
Dim refIid As Guid
Dim refShellItem As IShellItem
Dim returnValue As HResult
returnValue = Shell32.SHCreateItemFromIDList(pidl,
refIid, refShellItem)
public:
[DllImportAttribute(L"Shell32.dll", ExactSpelling = true)]
static HResult SHCreateItemFromIDList(
PIDL^ pidl,
Guid% refIid,
[OutAttribute] IShellItem^% refShellItem
)
[<DllImportAttribute("Shell32.dll", ExactSpelling = true)>]
static member SHCreateItemFromIDList :
pidl : PIDL *
refIid : Guid byref *
refShellItem : IShellItem byref -> HResult
No code example is currently available or this language may not be supported.
- 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 IShellItem
-
When this function returns, contains the IShellItem interface pointer requested in refIid.
HResult
If this function succeeds, it returns
S_OK.
Otherwise, it returns an
HResult error code.