X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fbase%2Fservices%2Fumpnpmgr%2Fumpnpmgr.c;h=8dc8a16e0311d52c45eb6a0ef6acabf0dcb6af94;hp=7488400a065868bf1eb81b84e1d6fa959c81c86d;hb=1cca0351e1ce1bb5da6a34539fa648d251f4e259;hpb=6c11399f0a7487cec7d21b28d6d211bcd43c7bb3;ds=sidebyside diff --git a/reactos/base/services/umpnpmgr/umpnpmgr.c b/reactos/base/services/umpnpmgr/umpnpmgr.c index 7488400a065..8dc8a16e031 100644 --- a/reactos/base/services/umpnpmgr/umpnpmgr.c +++ b/reactos/base/services/umpnpmgr/umpnpmgr.c @@ -831,8 +831,24 @@ DWORD PNP_CreateKey( DWORD samDesired, DWORD ulFlags) { - UNIMPLEMENTED; - return CR_CALL_NOT_IMPLEMENTED; + HKEY hKey = 0; + + if (RegCreateKeyExW(HKEY_LOCAL_MACHINE, + pszSubKey, + 0, + NULL, + 0, + KEY_ALL_ACCESS, + NULL, + &hKey, + NULL)) + return CR_REGISTRY_ERROR; + + /* FIXME: Set security key */ + + RegCloseKey(hKey); + + return CR_SUCCESS; }