Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceProperties::GetSupportedProperties method

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

pszObjectID [in]

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.

ppKeys [out]

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 codeDescription
S_OK

The method succeeded.

 

Remarks

To get the values of supported properties, call GetPropertyAttributes.

Requirements

Header

PortableDeviceApi.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDeviceProperties Interface

 

 

Community Additions

Show:
© 2017 Microsoft