Call this method to open the specified key and set m_hKey to the handle of this key.
LONG Open( HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired = KEY_READ | KEY_WRITE ) throw( );
Parameters
-
hKeyParent
- The handle of an open key. lpszKeyName
- Specifies the name of a key to be created or opened. This name must be a subkey of hKeyParent. samDesired
- The security access for the key. The default value is KEY_ALL_ACCESS. For