DWORD _GetRegistryKey(DWORD dwType, LPSTR lpszDevName, DWORD dwFlags, LPHKEY lphKey);
Gets a registry key handle for the given device name under the given branch of the HKEY_LOCAL_MACHINE key.
dwType
Parent registry branch in which to open the key. Can be one of these values:
REGTYPE_CLASS | \System\CurrentControlSet\Services\Class |
REGTYPE_ENUM | \ENUM |
lpszDevName
Address of a null-terminated string specifying the device-name subkey.
dwFlags
Action flags. Can be 0 or REGKEY_CREATE_IFNOTEXIST to indicate the key should be created if it does not already exist.
lphKey
Address of the variable that receives the handle of the opened key.