IRegValue::Value

[This is preliminary documentation and subject to change.]

Returns/sets the values of the Registry Value.

The Value property returns the data contents of the Registry Value. The result is returned in a VARIANT data type. This VARIANT's type reflects the data type the value has in the System Registry.

When you assign values to the property, the data type of the VARIANT value passed as argument will also be the data type written to the System Registry.

Currently only 2 data types are supported:

Other integer data types are automatically converted to the VT_I4 type.



HRESULT Value(
  VARIANT * pVal,
);

HRESULT Value( VARIANT newVal, );

Parameters

pVal
[out, retval] The returned value.
newVal
[in] The attributes new value.

Return Values

S_OK
The operation was successfull.
E_POINTER
A NULL pointer was supplied as an argument.

See Also

IRegValue