IPortableDevicePropVariantCollection::GetAt method
The GetAt method retrieves an item from the collection by a zero-based index.
Syntax
HRESULT GetAt(
[in] const DWORD dwIndex,
[out] 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 value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
|
A required pointer argument was NULL. |
|
The index that was passed in was out of range. |
Examples
For an example of how to use this method see Retrieving the Functional Categories Supported by a Device.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|