Author: ekohl
Date: Sun May 29 16:18:22 2011
New Revision: 51996
URL:
http://svn.reactos.org/svn/reactos?rev=51996&view=rev
Log:
[SETUPAPI]
- Add stubs for CM_Set_Class_Registry_PropertyA/W.
- Add support for missing properties to CM_Set_DevNode_Registry_Property_ExA/W.
Modified:
trunk/reactos/dll/win32/setupapi/cfgmgr.c
trunk/reactos/dll/win32/setupapi/setupapi.spec
Modified: trunk/reactos/dll/win32/setupapi/cfgmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/cfgmgr.…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/cfgmgr.c [iso-8859-1] Sun May 29 16:18:22 2011
@@ -5001,6 +5001,32 @@
/***********************************************************************
+ * CM_Set_Class_Registry_PropertyA [SETUPAPI.@]
+ */
+CONFIGRET WINAPI CM_Set_Class_Registry_PropertyA(
+ LPGUID ClassGuid, ULONG ulProperty, PCVOID Buffer, ULONG ulLength,
+ ULONG ulFlags, HMACHINE hMachine)
+{
+ FIXME("%p %lx %p %lu %lx %p\n",
+ ClassGuid, ulProperty, Buffer, ulLength, ulFlags, hMachine);
+ return CR_CALL_NOT_IMPLEMENTED;
+}
+
+
+/***********************************************************************
+ * CM_Set_Class_Registry_PropertyW [SETUPAPI.@]
+ */
+CONFIGRET WINAPI CM_Set_Class_Registry_PropertyW(
+ LPGUID ClassGuid, ULONG ulProperty, PCVOID Buffer, ULONG ulLength,
+ ULONG ulFlags, HMACHINE hMachine)
+{
+ FIXME("%p %lx %p %lu %lx %p\n",
+ ClassGuid, ulProperty, Buffer, ulLength, ulFlags, hMachine);
+ return CR_CALL_NOT_IMPLEMENTED;
+}
+
+
+/***********************************************************************
* CM_Set_DevNode_Problem [SETUPAPI.@]
*/
CONFIGRET WINAPI CM_Set_DevNode_Problem(
@@ -5178,6 +5204,30 @@
case CM_DRP_LOWERFILTERS:
ulType = REG_MULTI_SZ;
+ break;
+
+ case CM_DRP_SECURITY:
+ ulType = REG_BINARY;
+ break;
+
+ case CM_DRP_DEVTYPE:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_EXCLUSIVE:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_CHARACTERISTICS:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_UI_NUMBER_DESC_FORMAT:
+ ulType = REG_SZ;
+ break;
+
+ case CM_DRP_REMOVAL_POLICY_OVERRIDE:
+ ulType = REG_DWORD;
break;
default:
@@ -5332,6 +5382,30 @@
ulType = REG_MULTI_SZ;
break;
+ case CM_DRP_SECURITY:
+ ulType = REG_BINARY;
+ break;
+
+ case CM_DRP_DEVTYPE:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_EXCLUSIVE:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_CHARACTERISTICS:
+ ulType = REG_DWORD;
+ break;
+
+ case CM_DRP_UI_NUMBER_DESC_FORMAT:
+ ulType = REG_SZ;
+ break;
+
+ case CM_DRP_REMOVAL_POLICY_OVERRIDE:
+ ulType = REG_DWORD;
+ break;
+
default:
return CR_INVALID_PROPERTY;
}
Modified: trunk/reactos/dll/win32/setupapi/setupapi.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/setupap…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/setupapi.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/setupapi.spec [iso-8859-1] Sun May 29 16:18:22 2011
@@ -184,8 +184,8 @@
@ stdcall CM_Request_Eject_PC_Ex(long)
@ stdcall CM_Run_Detection(long)
@ stdcall CM_Run_Detection_Ex(long long)
-@ stub CM_Set_Class_Registry_PropertyA
-@ stub CM_Set_Class_Registry_PropertyW
+@ stdcall CM_Set_Class_Registry_PropertyA(ptr long ptr long long ptr)
+@ stdcall CM_Set_Class_Registry_PropertyW(ptr long ptr long long ptr)
@ stdcall CM_Set_DevNode_Problem(long long long)
@ stdcall CM_Set_DevNode_Problem_Ex(long long long long)
@ stdcall CM_Set_DevNode_Registry_PropertyA(long long ptr long long)