Condividi tramite


Metodo IPortableDeviceValues::GetFloatValue (portabledevicetypes.h)

Il metodo GetFloatValue recupera un valore FLOAT (tipo VT_R4) specificato da una chiave.

Sintassi

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

Parametri

[in] key

Chiave REFPROPERTYKEY che specifica l'elemento da recuperare.

[out] pValue

Puntatore al valore FLOAT recuperato.

Valore restituito

Il metodo restituisce un valore 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 FLOAT .
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
La proprietà specificata dalla chiave non è presente nell'insieme.

Commenti

Nessuno.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione portabledevicetypes.h

Vedi anche

Interfaccia IPortableDeviceValues

IPortableDeviceValues::SetFloatValue