BCGControlBar Pro for MFC
CBCGPRegistry::CBCGPRegistry ( BOOL  bAdmin,
BOOL  bReadOnly 
)

Constructor

Sets the m_hKey member handle to HKEY_LOCAL_MACHINE if the bAdmin parameter is nonzero or to HKEY_CURRENT_USER if bAdmin parameter is 0 . The destructor releases m_hKey. The security access depends on bReadOnly parameter and will be set either to KEY_ALL_ACCESS if this parameter is 0 or to READ_ONLY_KEYS (that is a combination of KEY_QUERY_VALUE, KEY_NOTIFY and KEY_ENUMERATE_SUB_KEYS values).

Parameters
bAdminControls the initial value of m_hKey member handle
bReadOnlyControls the security access to all subsequently opened key