_RegCreateKey


DWORD _RegCreateKey(HKEY hKey, LPSTR lpszSubKey, LPHKEY lphKey)

Creates or opens the registry key for the given registry path.

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.