_RegCreateKey
DWORD _RegCreateKey(HKEY hKey, LPSTR lpszSubKey, LPHKEY lphKey)
Creates or opens the registry key for the given registry path.
- Returns ERROR_SUCCESS if successful; otherwise, one of the error values given in Error Values.
- hKey
- Handle of a previously opened key or one of the predefined root keys given in Predefined Keys.
- lpszSubKey
- Subkey string to be opened. Can be NULL. Can also be NULL-string only if hKey is a predefined key.
- lphKey
- Address of the returned HKEY for a successful open/create.