SetRegistryValue

From Solid Graphics Wiki

Jump to: navigation, search
SetRegistryValue
Namespace: SKL
Member of: (this function is not member of any class)
Include: SklCommon.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The SetRegistryValue function sets specified registry value.

bool SetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        const char* regValue
        );
bool SetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        int regValue
        );
bool SetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        bool regValue
        );
bool SetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        float regValue
        );


Parameters

regRoot Root of the registry key. This can be either SKL::ClassesRoot, or SKL::CurrentUser or SKL::LocalMachine.
keyName The registry key name, for example "SOFTWARE\\Microsoft\\DevStudio\\6.0\\Help\\Extension\\"
valueName The registry value name, for example "FileName"
regValue The value to set the registry value to. The int value type is stored as REG_DWORD type in the registry, other types are converted to REG_SZ (string).

Return value

The function returns true if the registry value is successfully set, false if the function is unable to write the registry value (for example because of an access denied error) or if the registry value does not exist.

See Also


   


SolidKit Library Documentation

Personal tools