This method creates the specified key if it does not exist as a subkey of hKeyParent. Otherwise, Create opens the key.
LONG Create( HKEY hKeyParent, LPCTSTR lpszKeyName, LPTSTR lpszClass = REG_NONE, DWORD dwOptions = REG_OPTION_NON_VOLATILE, REGSAM samDesired = KEY_ALL_ACCESS, LPSECURITY_ATTRIBUTES lpSecAttr = NULL, LPDWORD lpdwDisposition = NULL );
Header file: | Atlbase.h |
Platforms: | |
Versions: | Version 2.0 and later |
Complete documentation: | Visual C++ documentation |
CRegKey Overview, CRegKey Methods, CRegKey::Open, CRegKey::m_hKey