Compartilhar via


IPortableDeviceCapabilities::GetSupportedContentTypes

banner art

Previous Next

IPortableDeviceCapabilities::GetSupportedContentTypes

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

Syntax

  HRESULT GetSupportedContentTypes(
  REFGUID  Category,
  IPortableDevicePropVariantCollection**  ppContentTypes
);

Parameters

Category

[in]  A REFGUID that specifies a functional object category. To get a list of functional objects on the device, call IPortableDeviceCapabilities::GetFunctionalObjects.

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 (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 Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Requirements

Header: Defined in PortableDeviceApi.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next