IPortableDeviceContent::Transfer method

The Transfer method retrieves an interface that is used to read from or write to the content data of an existing object resource.

Syntax


HRESULT Transfer(
  [out] IPortableDeviceResources **ppResources
);

Parameters

ppResources [out]

Address of a variable that receives a pointer to an IPortableDeviceResources interface that is used to modify an object's resources. 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 required arguments was a NULL pointer.

 

Remarks

This method is typically used to read from an existing object.

Examples

For an example of how to use this method, see Adding a Resource to an Object.

Requirements

Header

PortableDeviceApi.h

Library

PortableDeviceGUIDs.lib

See also

Adding a Resource to an Object
IPortableDeviceContent Interface

 

 

Community Additions

ADD
Show: