IFolderView2::GetItem method
Retrieves an object that represents a specified item.
Syntax
HRESULT GetItem( [in] int iItem, [in] REFIID riid, [out] void **ppv );
Parameters
- iItem [in]
-
Type: int
The zero-based index of the item to retrieve.
- riid [in]
-
Type: REFIID
Reference to the desired IID to represent the item, such as IID_IShellItem.
- ppv [out]
-
Type: void**
When this method returns, contains the interface pointer requested in riid. This is typically IShellItem.
Return value
Type: HRESULT
Returns S_OK if the specified item was found, or an error value otherwise, including the following:
| Return code | Description |
|---|---|
|
The index in iItem is out of range. |
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also
Show: