Implement basic version of PNP_CreateKey.

svn path=/trunk/; revision=45361
This commit is contained in:
Eric Kohl
2010-01-31 19:44:02 +00:00
parent 6c11399f0a
commit 1cca0351e1
+18 -2
View File
@@ -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;
}