IPortableDeviceProperties::GetSupportedProperties method (portabledeviceapi.h)
The GetSupportedProperties method retrieves a list of properties that a specified object supports. Note that not all of these properties may actually have values.
Syntax
HRESULT GetSupportedProperties(
[in] LPCWSTR pszObjectID,
[out] IPortableDeviceKeyCollection **ppKeys
);
Parameters
[in] pszObjectID
Pointer to a null-terminated string that contains the object ID of the object to query. To specify the device, use WPD_DEVICE_OBJECT_ID.
[out] ppKeys
Address of a variable that receives a pointer to an IPortableDeviceKeyCollection interface that contains the supported properties. For a list of properties defined by Windows Portable Devices, see Properties and Attributes. The caller must release this interface when it is done with it.
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. |
Remarks
To get the values of supported properties, call GetPropertyAttributes.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | portabledeviceapi.h |
Library | PortableDeviceGUIDs.lib |