Registry
Constructor with the reserved key.
Registry( DWORD hParentKey )
#define HKEY_CLASSES_ROOT ( 0x80000000 ) #define HKEY_CURRENT_USER ( 0x80000001 ) #define HKEY_LOCAL_MACHINE ( 0x80000002 ) #define HKEY_USERS ( 0x80000003 ) #define HKEY_PERFORMANCE_DATA ( 0x80000004 ) #define HKEY_CURRENT_CONFIG ( 0x80000005 ) #define HKEY_DYN_DATA ( 0x80000006 )
None.
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); }
Registry::GetValue
origin.h