Export (0) Print
Expand All
Expand Minimize

SHCreateItemFromIDList function

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.

Syntax


HRESULT SHCreateItemFromIDList(
  _In_   PCIDLIST_ABSOLUTE pidl,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

pidl [in]

Type: PCIDLIST_ABSOLUTE

The source PIDL.

riid [in]

Type: REFIID

A reference to the IID of the requested interface.

ppv [out]

Type: void**

When this function returns, contains the interface pointer requested in riid. This will typically be IShellItem or IShellItem2.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

DLL

Shell32.dll

See also

SHGetIDListFromObject

 

 

Community Additions

ADD
Show:
© 2014 Microsoft