Metodo IPortableDeviceValues::SetSignedIntegerValue

Il metodo SetSignedIntegerValue aggiunge un nuovo valore LONG (tipo VT_I4) o sovrascrive uno esistente.

Sintassi

HRESULT SetSignedIntegerValue(
  [in]       REFPROPERTYKEY key,
  [in] const LONG           Value
);

Parametri

chiave [in]

REFPROPERTYKEY che specifica l'elemento da creare o sovrascrivere.

Valore [in]

Long che specifica il nuovo valore.

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.

Commenti

Se un valore esistente ha la stessa chiave specificata dal parametro chiave , sovrascrive il valore esistente senza alcun avviso.

Requisiti

Requisito Valore
Intestazione
PortableDeviceTypes.h
Libreria
PortableDeviceGUIDs.lib

Vedi anche

Interfaccia IPortableDeviceValues

IPortableDeviceValues::GetSignedIntegerValue