Share via


IWpdSerializer::GetIPortableDeviceValuesFromBuffer

banner art

Previous Next

IWpdSerializer::GetIPortableDeviceValuesFromBuffer

The GetIPortableDeviceValuesFromBuffer method deserializes a byte array to an IPortableDeviceValues interface.

Syntax

  HRESULT GetIPortableDeviceValuesFromBuffer(
  BYTE*  pBuffer,
  DWORD  dwInputBufferLength,
  IPortableDeviceValues**  ppParams
);

Parameters

pBuffer

[in]  Pointer to the buffer to deserialize.

dwInputBufferLength

[in]  DWORD that specifies the size of the buffer, in bytes.

ppParams

[out]  Address of a variable that receives a pointer to an IPortableDeviceValues interface created from the buffer. The application is responsible for calling Release on the interface.

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 A required pointer argument was NULL.
E_UNEXPECTED An unspecified conversion error occurred.

Requirements

Header: Defined in PortableDeviceTypes.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next