_RegOpenKey
DWORD _RegOpenKey(HKEY hKey, LPSTR lpszSubKey, LPHKEY lphKey)
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
- Address of a null-terminated string specifying the subkey to be open. May also be NULL or NULL-string.
- lphKey
- Address of the variable that receives the handle of the opened key.