Share via


IWpdSerializer Interface

banner art

Previous Next

IWpdSerializer Interface

The IWpdSerializer interface is used by the device driver to serialize IPortableDeviceValues interfaces to and from the raw data buffers used to communicate with the application.

Applications do not need to use this interface, because the data is serialized and deserialized automatically when calling IPortableDevice::SendCommand.

To get this interface, call CoCreateInstance and pass in IID_IWpdSerializer.

In addition to the methods inherited from IUnknown, the IWpdSerializer interface exposes the following methods.

Method Description
GetBufferFromIPortableDeviceValues Serializes a submitted IPortableDeviceValues interface to an allocated byte array.
GetIPortableDeviceValuesFromBuffer Deserializes a byte array to an IPortableDeviceValues interface.
GetSerializedSize Calculates the buffer size that is required to hold a serialized IPortableDeviceValues interface.
WriteIPortableDeviceValuesToBuffer Serializes an IPortableDeviceValues interface to a caller-allocated byte array.

Requirements

Header: Defined in PortableDeviceTypes.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next