WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMATS command

Retrieves the formats that are supported for a given content type on the device. For example, for WPD_CONTENT_TYPE_IMAGE, the device might only support WPD_OBJECT_FORMAT_BMP or WPD_OBJECT_FORMAT_JFIF formats.

If the device has a preferred ordering for formats—for example, if an audio device prefers music files in WMA rather than MP3 format—the driver should do the following:

  1. Set the WPD_DEVICE_SUPPORTED_FORMATS_ARE_ORDERED property to true.
  2. Return the results for WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMATS in the preferred order.

Command category

WPD_CATEGORY_CAPABILITIES

Parameters

Parameters

The driver expects the following parameters.

WPD_PROPERTY_CAPABILITIES_CONTENT_TYPE

Return value

Result

The driver should return the following results.

WPD_PROPERTY_CAPABILITIES_FORMATS

WPD_PROPERTY_COMMON_HRESULT

WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE

Calling methods

IPortableDeviceCapabilities::GetSupportedFormats

Requirements

Header

PortableDevice.h

See also

Commands

 

 

Send comments about this topic to Microsoft