Juan Lang : setupapi: Add stubs for CM_Get_Device_IDA and CM_Get_Device_ID_Size.

Alexandre Julliard julliard at winehq.org
Thu Nov 8 07:07:31 CST 2007


Module: wine
Branch: master
Commit: 4115598d5c13dfcc1421317d9d9b34e21990aa13
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4115598d5c13dfcc1421317d9d9b34e21990aa13

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Nov  7 10:38:16 2007 -0800

setupapi: Add stubs for CM_Get_Device_IDA and CM_Get_Device_ID_Size.

---

 dlls/setupapi/setupapi.spec |    4 ++--
 dlls/setupapi/stubs.c       |   22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 328a23e..ab62b6d 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -71,7 +71,7 @@
 @ stub CM_Get_DevNode_Registry_Property_ExW
 @ stub CM_Get_DevNode_Status
 @ stub CM_Get_DevNode_Status_Ex
-@ stub CM_Get_Device_IDA
+@ stdcall CM_Get_Device_IDA(ptr ptr long long)
 @ stub CM_Get_Device_IDW
 @ stub CM_Get_Device_ID_ExA
 @ stub CM_Get_Device_ID_ExW
@@ -83,7 +83,7 @@
 @ stub CM_Get_Device_ID_List_SizeW
 @ stub CM_Get_Device_ID_List_Size_ExA
 @ stub CM_Get_Device_ID_List_Size_ExW
-@ stub CM_Get_Device_ID_Size
+@ stdcall CM_Get_Device_ID_Size(ptr ptr long)
 @ stub CM_Get_Device_ID_Size_Ex
 @ stub CM_Get_Device_Interface_AliasA
 @ stub CM_Get_Device_Interface_AliasW
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index de1fec1..7d73be2 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -71,6 +71,17 @@ DWORD WINAPI CM_Disconnect_Machine(DWORD handle)
 }
 
 /***********************************************************************
+ *		CM_Get_Device_IDA  (SETUPAPI.@)
+ */
+DWORD WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer,
+                                   ULONG  BufferLen, ULONG  ulFlags)
+{
+    FIXME("%p, %p, %u %u\n",dnDevInst, Buffer, BufferLen, ulFlags);
+    Buffer[0] = 0;
+    return CR_SUCCESS;
+}
+
+/***********************************************************************
  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
  */
 
@@ -83,6 +94,17 @@ DWORD WINAPI CM_Get_Device_ID_ListA(
 }
 
 /***********************************************************************
+ *		CM_Get_Device_ID_Size  (SETUPAPI.@)
+ */
+DWORD WINAPI CM_Get_Device_ID_Size( ULONG*  pulLen, LPVOID dnDevInst,
+                                        ULONG  ulFlags)
+{
+    FIXME("%p %p %u\n",pulLen, dnDevInst, ulFlags);
+    *pulLen = 1;
+    return CR_SUCCESS;
+}
+
+/***********************************************************************
  *		SetupInitializeFileLogW(SETUPAPI.@)
  */
 HSPFILELOG WINAPI SetupInitializeFileLogW(LPCWSTR LogFileName, DWORD Flags)




More information about the wine-cvs mailing list