SHCreateShellItemArrayFromIDLists function

Creates a Shell item array object from a list of ITEMIDLIST structures.

Syntax

SHSTDAPI SHCreateShellItemArrayFromIDLists(
  UINT                    cidl,
  PCIDLIST_ABSOLUTE_ARRAY rgpidl,
  IShellItemArray         **ppsiItemArray
);

Parameters

cidl

Type: UINT

The number of elements in the array.

rgpidl

Type: PCIDLIST_ABSOLUTE_ARRAY

A list of cidl constant pointers to ITEMIDLIST structures.

ppsiItemArray

Type: IShellItemArray**

When this function returns, contains an IShellItemArray interface pointer.

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