Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves an object that represents a specified item.
Syntax
HRESULT GetItem(
[in] int iItem,
[in] REFIID riid,
[out] void **ppv
);
Parameters
[in] iItem
Type: int
The zero-based index of the item to retrieve.
[in] riid
Type: REFIID
Reference to the desired IID to represent the item, such as IID_IShellItem.
[out] ppv
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |