Vladimir Pankratov : setupapi: Add stub for CM_Get_Device_ID_ExW.

Alexandre Julliard julliard at winehq.org
Wed Dec 16 09:41:36 CST 2009


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

Author: Vladimir Pankratov <scriptkid at mail.ru>
Date:   Tue Dec 15 21:46:59 2009 +0500

setupapi: Add stub for CM_Get_Device_ID_ExW.

---

 dlls/setupapi/setupapi.spec |    2 +-
 dlls/setupapi/stubs.c       |   10 ++++++++++
 include/cfgmgr32.h          |    3 +++
 3 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 2f62b66..04473aa 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -74,7 +74,7 @@
 @ stdcall CM_Get_Device_IDA(ptr ptr long long)
 @ stdcall CM_Get_Device_IDW(ptr ptr long long)
 @ stub CM_Get_Device_ID_ExA
-@ stub CM_Get_Device_ID_ExW
+@ stdcall CM_Get_Device_ID_ExW(ptr ptr long long ptr)
 @ stdcall CM_Get_Device_ID_ListA(str ptr long long)
 @ stdcall CM_Get_Device_ID_ListW(wstr ptr long long)
 @ stub CM_Get_Device_ID_List_ExA
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 1b217db..44cd2c0 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -79,6 +79,16 @@ CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
 }
 
 /***********************************************************************
+ *             CM_Get_Device_ID_ExW  (SETUPAPI.@)
+ */
+DWORD WINAPI CM_Get_Device_ID_ExW(
+    DEVINST dnDevInst, PWCHAR Buffer, ULONG BufferLen, ULONG ulFlags, HMACHINE hMachine)
+{
+    FIXME("0x%08x %p 0x%08x 0x%08x %p\n", dnDevInst, Buffer, BufferLen, ulFlags, hMachine);
+    return CR_SUCCESS;
+}
+
+/***********************************************************************
  *             CM_Get_Device_ID_ListA  (SETUPAPI.@)
  */
 CONFIGRET WINAPI CM_Get_Device_ID_ListA(
diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h
index 2b80534..cd26df8 100644
--- a/include/cfgmgr32.h
+++ b/include/cfgmgr32.h
@@ -127,6 +127,9 @@ CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE);
 CMAPI CONFIGRET WINAPI CM_Get_Device_IDA(DEVINST,PSTR,ULONG,ULONG);
 CMAPI CONFIGRET WINAPI CM_Get_Device_IDW(DEVINST,PWSTR,ULONG,ULONG);
 #define     CM_Get_Device_ID WINELIB_NAME_AW(CM_Get_Device_ID)
+CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA(DEVINST,PSTR,ULONG,ULONG,HMACHINE);
+CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW(DEVINST,PWSTR,ULONG,ULONG,HMACHINE);
+#define     CM_Get_Device_ID_Ex WINELIB_NAME_AW(CM_Get_Device_ID_Ex)
 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA(PCSTR,PCHAR,ULONG,ULONG);
 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW(PCWSTR,PWCHAR,ULONG,ULONG);
 #define     CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List)




More information about the wine-cvs mailing list