IPortableDevice::Content method (portabledeviceapi.h)

The Content method retrieves an interface that you can use to access objects on a device.

Syntax

HRESULT Content(
  [out] IPortableDeviceContent **ppContent
);

Parameters

[out] ppContent

Address of a variable that receives a pointer to an IPortableDeviceContent interface that is used to access the content on a device. 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 code Description
S_OK
The method succeeded.
E_POINTER
The ppContent argument was a NULL pointer.

Requirements

Requirement Value
Target Platform Windows
Header portabledeviceapi.h
Library PortableDeviceGUIDs.lib

See also

Adding a Resource to an Object

Enumerating Content

IPortableDevice Interface

Moving Content on the Device

Retrieving Properties for Multiple Objects

Retrieving an Object Identifier from a Persistent Unique Identifier

Retrieving the Rendering Capabilities Supported by a Device

Setting Properties for Multiple Objects

Setting Properties for a Single Object