#include <vmmreg.h>
_GetRegistryKey(DWORD dwType, LPSTR lpszDeviceName,
DWORD dwFlags, LPHKEY lphDevKey);
Gets a registry key handle for the given device name under the branch of the registry tree specified by the dwType parameter. Uses C calling convention. Caller should use _RegCloseKey to close the returned HKEY.
| ERROR_INVALID_PARAMETER |
| ERROR_REGISTRY_IO_FAILED |
| ERROR_REGISTRY_CORRUPT |
| ERROR_BADDB |
| ERROR_FILE_NOT_FOUND |