Metodo IPortableDeviceValues::SetErrorValue
Il metodo SetErrorValue aggiunge un nuovo valore HRESULT (tipo VT_ERROR) o ne sovrascrive uno esistente.
HRESULT SetErrorValue(
[in] REFPROPERTYKEY key,
[in] const HRESULT Value
);
-
key [in]
-
REFPROPERTYKEY che specifica l'elemento da creare o sovrascrivere.
-
Valore [in]
-
Valore HRESULT che contiene il nuovo valore.
Il metodo restituisce un valore HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.
Codice restituito | Descrizione |
---|---|
|
Il metodo è riuscito. |
Se un valore esistente ha la stessa chiave specificata dal parametro key , sovrascrive il valore esistente senza alcun avviso.
Requisito | Valore |
---|---|
Intestazione |
|
Libreria |
|