Sets data for an Internet Explorer setting that is a registry value, allowing for placeholders in the setting’s key and value.


SetValue (
    REFGUID Guid, 
    INT HiveId, 
    INT Type,
    PBYTE pData,
    DWORD cbData, 
    UINT ArgCount, 

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


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.

The ArgCount argument specifies how many placeholders are provided as remaining arguments. Each placeholder is a PCWSTR.

Return Value

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


The SetExtValue function is exported from IERTUTIL as ordinal 655 in version 8.0 and higher.