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::GetSupportedContentTypes method

The GetSupportedContentTypes method retrieves all supported content types for a specified functional object type on a device.

Syntax


HRESULT GetSupportedContentTypes(
  [in]  REFGUID                              Category,
  [out] IPortableDevicePropVariantCollection **ppContentTypes
);

Parameters

Category [in]

A REFGUID that specifies a functional object category. To get a list of functional categories on the device, call IPortableDeviceCapabilities::GetFunctionalCategories.

ppContentTypes [out]

Address of a variable that receives a pointer to an IPortableDevicePropVariantCollection interface that lists all the supported object types for the specified functional object category. These object types will be GUID values of type VT_CLSID in the retrieved PROPVARIANT items. See Requirements for Objects for a list of object types defined by Windows Portable Devices. 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.

 

Examples

For an example of how to use this method, see Retrieving the Content Types Supported by a Device.

Requirements

Header

PortableDeviceApi.h

Library

PortableDeviceGUIDs.lib

See also

IPortableDeviceCapabilities Interface
Retrieving the Content Types Supported by a Device

 

 

Community Additions

Show:
© 2017 Microsoft