GetRegistryValue

From Solid Graphics Wiki

Jump to: navigation, search
GetRegistryValue
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 GetRegistryValue function reads specified registry value into a String, bool, int, or float variable.

bool GetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        String & regValue
        );
bool GetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        bool & regValue
        );
bool GetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        int & regValue
        );
bool GetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        float & regValue
        );
bool GetRegistryValue
        (
        RegistryRoot regRoot,
        const char* keyName,
        const char* valueName,
        char* regValue,
        int strValueBufferSize
        );


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 function writes the registry value into the regValue variable

Return value

The function returns true if the registry value is successfully read, false if the function is unable to read 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