Registry

 

Contents

Name

Registry

Remark

The Origin C Registry class contains several methods that are used to access Windows registry.

Hierarchy

Examples

EX1

void Registry_Registry_Ex1()
{
    Registry reg(HKEY_CURRENT_USER);
    string strDialogName = "Set Value";
    string strKey = GetRegKey() + "\\Dialogs\\" + strDialogName;
    string strValueName = "AutoUpdate";
 
    DWORD dwVal; // output
    reg.GetValue(strKey, strValueName, dwVal);
    printf("Value of the key - %s is:\n%d\n", strKey, dwVal);
}

header to Include

origin.h

Reference

Members

Name Brief Example
DelKey Deletes a subkey. Examples
DelValue Removes a named value from the specified registry key. Examples
EnumKey Gets the sub-keys of a specified key. Examples
GetValue Retrieves the data for a specified value name associated with a subkey. Examples
HasKey Has the specified registry key or not. Examples
Registry Constructor with the reserved key. Examples
SetValue Sets the data for the default or unnamed value of a specified registry key. The data must be a text string. Examples