[ros-diffs] [ekohl] 45361: Implement basic version of PNP_CreateKey.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sun Jan 31 20:44:02 CET 2010


Author: ekohl
Date: Sun Jan 31 20:44:02 2010
New Revision: 45361

URL: http://svn.reactos.org/svn/reactos?rev=45361&view=rev
Log:
Implement basic version of PNP_CreateKey.

Modified:
    trunk/reactos/base/services/umpnpmgr/umpnpmgr.c

Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/umpnpmgr.c?rev=45361&r1=45360&r2=45361&view=diff
==============================================================================
--- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] Sun Jan 31 20:44:02 2010
@@ -831,8 +831,24 @@
     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;
 }
 
 




More information about the Ros-diffs mailing list