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.
Members
The IWpdSerializer interface inherits from the IUnknown interface. IWpdSerializer also has these types of members:
Methods
The IWpdSerializer interface has these 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
Requirement | Value |
---|---|
Header |
|
Library |
|