IShellItemArray::GetItemAt method
Gets the item at the given index in the IShellItemArray.
Syntax
HRESULT GetItemAt(
[in] DWORD dwIndex,
[out] IShellItem **ppsi
);
Parameters
- dwIndex [in]
-
Type: DWORD
The index of the IShellItem requested in the IShellItemArray
- ppsi [out]
-
Type: IShellItem**
When this method returns, contains the requested IShellItem pointer.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This function returns E_FAIL if the requested index is out of bounds of the IShellItemArray.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also
Show: