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.

IPortableDeviceCapabilities::GetSupportedFormats method

The GetSupportedFormats method retrieves the supported formats for a specified object type on the device. For example, specifying audio objects might return WPD_OBJECT_FORMAT_WMA, WPD_OBJECT_FORMAT_WAV, and WPD_OBJECT_FORMAT_MP3.

Syntax


HRESULT GetSupportedFormats(
  [in]  REFGUID                              ContentType,
  [out] IPortableDevicePropVariantCollection **ppFormats
);

Parameters

ContentType [in]

A REFGUID that specifies a content type, such as image, audio, or video. For a list of content types that are defined by Windows Portable Devices, see Requirements for Objects.

ppFormats [out]

Address of a variable that receives a pointer to an IPortableDevicePropVariantCollection interface that lists the supported formats for the specified content type. These are GUID values (type VT_CLSID) in the retrieved collection items. For a list of formats that are supported by Windows Portable Devices, see Object Formats. 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.

E_POINTER

At least one of the arguments was a NULL pointer.

 

Requirements

Header

PortableDeviceApi.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDeviceCapabilities Interface
IPortableDeviceCapabilities::GetSupportedFormatProperties

 

 

Community Additions

Show:
© 2017 Microsoft