Metodo IPortableDeviceValues::GetErrorValue

Il metodo GetErrorValue recupera un valore HRESULT (tipo VT_ERROR) specificato da una chiave.

Sintassi

HRESULT GetErrorValue(
  [in]  REFPROPERTYKEY key,
  [out] HRESULT        *pValue
);

Parametri

chiave [in]

Chiave REFPROPERTYKEY che specifica l'elemento da recuperare.

pValue [out]

Puntatore al valore HRESULT recuperato.

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.
DISP_E_TYPEMISMATCH
La proprietà specificata dalla chiave non è un tipo HRESULT .
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
La proprietà specificata dalla chiave non è nella raccolta.

Requisiti

Requisito Valore
Intestazione
PortableDeviceTypes.h
Libreria
PortableDeviceGUIDs.lib

Vedi anche

Interfaccia IPortableDeviceValues

IPortableDeviceValues::SetErrorValue