SetValue

Sets data for an Internet Explorer setting that is a registry value.

Declaration

HRESULT 
SetValue (
    REFGUID Guid, 
    HIVEID HiveId, 
    TYPE Type, 
    PBYTE pData, 
    DWORD cbData);

in which HIVEID and TYPE are each an enum in the SettingStore namespace.

Parameters

The Guid argument specifies the setting to work on.

The HiveId argument specifies a logical hive for the setting. Refer to the general notes for supported cases.

The Type argument specifies the type of data that is provided. Refer to the general notes for supported cases.

The pData and cbData arguments provide the address and the size in bytes, respectively, of a buffer that contains the data.

Return Value

The function returns zero for success, else an error code.

Availability

The SetValue function is exported from IERTUTIL as ordinal 654 in version 8.0 and higher.