Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Opens a registry key or creates it if it does not exist.
virtual BOOL CreateKey(
LPCTSTR pszPath
);
Parameters
- [in] pszPath
Specifies the name of a key to be created or opened.
Return Value
0 if successful; otherwise a nonzero value.
Remarks
CreateKey uses m_hKey as the root of registry inquiries. It searches for pszPath as a subkey of m_hKey. If the key does not exist, CreateKey creates it. Otherwise, it opens the key. CreateKey then sets m_hKey to the created or opened key.
Requirements
Header: afxsettingsstore.h