SHGetIDListFromObject function

Retrieves the pointer to an item identifier list (PIDL) of an object.

Syntax

SHSTDAPI SHGetIDListFromObject(
  IUnknown         *punk,
  PIDLIST_ABSOLUTE *ppidl
);

Parameters

punk

Type: IUnknown*

A pointer to the IUnknown of the object from which to get the PIDL.

ppidl

Type: PIDLIST_ABSOLUTE*

When this function returns, contains a pointer to the PIDL of the given object.

Return Value

Type: HRESULT

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

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll

See Also

SHCreateItemFromIDList