Expand Minimize

SHCreateShellItemArrayFromShellItem function

Creates an array of one element from a single Shell item.

Syntax


HRESULT SHCreateShellItemArrayFromShellItem(
  _In_   IShellItem *psi,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

psi [in]

Type: IShellItem*

Pointer to IShellItem object that represents the item.

riid [in]

Type: REFIID

A reference to the IID of the interface to retrieve through ppv, typically IID_IShellItemArray.

ppv [out]

Type: void**

When this method returns, contains the interface pointer requested in riid. This is typically a pointer to an IShellItemArray.

Return value

Type: HRESULT

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

Remarks

This function creates a one-element array from a single item. To create an array from the contents of a folder, use SHCreateShellItemArray.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

DLL

Shell32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft