Share via


IPortableDeviceContent::Properties

banner art

Previous Next

IPortableDeviceContent::Properties

The Properties method retrieves the interface that is required to get or set properties on an object on the device.

Syntax

  HRESULT Properties(
  IPortableDeviceProperties**  ppProperties
);

Parameters

ppProperties

[out]  Address of a variable that receives a pointer to an IPortableDeviceProperties interface that is used to get or set object properties. 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.
E_POINTER At least one of the required arguments was a NULL pointer.

Remarks

The retrieved interface is not specific to a particular object on the device; it is specific only to the device. You must specify the ID of the object you want when requesting or setting properties.

Requirements

Header: Defined in PortableDeviceApi.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next