Condividi tramite


Metodo IWpdSerializer::GetIPortableDeviceValuesFromBuffer (portabledevicetypes.h)

Deserializza una matrice di byte in un'interfaccia IPortableDeviceValues .

Sintassi

HRESULT GetIPortableDeviceValuesFromBuffer(
  [in]  BYTE                  *pBuffer,
  [in]  DWORD                 dwInputBufferLength,
  [out] IPortableDeviceValues **ppParams
);

Parametri

[in] pBuffer

Puntatore al buffer da deserializzare.

[in] dwInputBufferLength

DWORD che specifica le dimensioni del buffer, in byte.

[out] ppParams

Indirizzo di una variabile che riceve un puntatore a un'interfaccia IPortableDeviceValues creata dal buffer. L'applicazione è responsabile della chiamata a Release nell'interfaccia.

Valore restituito

Il metodo restituisce un HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Codice restituito Descrizione
S_OK
Il metodo è riuscito.
E_POINTER
Un argomento del puntatore obbligatorio è NULL.
E_UNEXPECTED
Si è verificato un errore di conversione non specificato.

Commenti

Nessuno.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione portabledevicetypes.h

Vedi anche

Interfaccia IWpdSerializer