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 |
---|---|
|
The method succeeded. |
|
A required pointer argument was NULL. |
|
An unspecified conversion error occurred. |
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|