The Registry_GetValue() function retrieves the specified value from the registry.
Registry_GetValue(subtree, key, value_name, value {, error_code})
• subtree – An integer specifying the registry subtree. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
REGKEY_CLASSES_ROOT |
HKEY_CLASSES_ROOT subtree |
REGKEY_CURRENT_USER |
HKEY_CURRENT_USER subtree |
REGKEY_LOCAL_MACHINE |
HKEY_LOCAL_MACHINE subtree |
REGKEY_CURRENT_CONFIG |
HKEY_CURRENT_CONFIG subtree |
• key – A string specifying the path of the key that contains the value to retrieve. The path value begins with the key name followed by the subkey names. The values in the path are separated by backslash (\) characters.
• value_name – The name of the value to return.
• value – The value returned from the registry. The data type depends on the type of value being retrieved from the registry.
• error_code – An optional returned long integer that contains the error code that was returned. The error codes are defined in the WinError.h file of the Windows SDK.
A boolean indicating the result. The value true indicates the function succeeded, while false indicates it did not.