From 1cca0351e1ce1bb5da6a34539fa648d251f4e259 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 31 Jan 2010 19:44:02 +0000 Subject: [PATCH 1/1] Implement basic version of PNP_CreateKey. svn path=/trunk/; revision=45361 --- reactos/base/services/umpnpmgr/umpnpmgr.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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; } -- 2.17.1