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.
Previous | Next |
IPortableDevicePropVariantCollection::GetAt
The GetAt method retrieves an item from the collection by a zero-based index.
Syntax
HRESULT GetAt( const DWORD dwIndex, PROPVARIANT* pValue );
Parameters
dwIndex
[in] DWORD that contains the zero-based index of the item to retrieve.
pValue
[out] Pointer to a PROPVARIANT structure. The caller is responsible for freeing this memory by calling PropVariantClear.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
E_POINTER | A required pointer argument was NULL. |
E_INVALIDARG | The index that was passed in was out of range. |
Requirements
Header: Defined in PortableDeviceTypes.h
Library: PortableDeviceGUIDs.lib
See Also
Previous | Next |