IWpdSerializer::GetIPortableDeviceValuesFromBuffer method

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

Syntax

HRESULT GetIPortableDeviceValuesFromBuffer(
  [in]  BYTE                  *pBuffer,
  [in]  DWORD                 dwInputBufferLength,
  [out] 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 value

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

Requirement Value
Header
PortableDeviceTypes.h
Library
PortableDeviceGUIDs.lib

See also

IWpdSerializer Interface