Ricardo Filipe : setupapi: Add stubs for CM_Locate_DevNodeA/W.

Alexandre Julliard julliard at winehq.org
Fri Dec 26 12:35:22 CST 2008


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

Author: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date:   Wed Dec 24 20:28:31 2008 +0000

setupapi: Add stubs for CM_Locate_DevNodeA/W.

---

 dlls/setupapi/setupapi.spec |    4 ++--
 dlls/setupapi/stubs.c       |   20 ++++++++++++++++++++
 include/cfgmgr32.h          |    3 +++
 3 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 75cb7c8..d08b4d3 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -128,8 +128,8 @@
 @ stub CM_Intersect_Range_List
 @ stub CM_Invert_Range_List
 @ stub CM_Is_Dock_Station_Present
-@ stub CM_Locate_DevNodeA
-@ stub CM_Locate_DevNodeW
+@ stdcall CM_Locate_DevNodeA(ptr str long)
+@ stdcall CM_Locate_DevNodeW(ptr wstr long)
 @ stub CM_Locate_DevNode_ExA
 @ stub CM_Locate_DevNode_ExW
 @ stub CM_Merge_Range_List
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 33240ce..9a56fd0 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -228,3 +228,23 @@ UINT WINAPI SetupPromptForDiskW(HWND hwndParent, PCWSTR DialogTitle, PCWSTR Disk
           PathRequiredSize);
     return 0;
 }
+
+/***********************************************************************
+ *      CM_Locate_DevNodeA (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST pdnDevInst, DEVINSTID_A pDeviceID, ULONG ulFlags)
+{
+    FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_a(pDeviceID), ulFlags);
+
+    return CR_FAILURE;
+}
+
+/***********************************************************************
+ *      CM_Locate_DevNodeW (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST pdnDevInst, DEVINSTID_W pDeviceID, ULONG ulFlags)
+{
+    FIXME("%p %s 0x%08x: stub\n", pdnDevInst, debugstr_w(pDeviceID), ulFlags);
+
+    return CR_FAILURE;
+}
diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h
index 635ac98..9dedc4e 100644
--- a/include/cfgmgr32.h
+++ b/include/cfgmgr32.h
@@ -129,6 +129,9 @@ CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(PCWSTR,PWCHAR,ULONG,ULONG,HMACH
 #define     CM_Get_Device_ID_List_Ex WINELIB_NAME_AW(CM_Get_Device_ID_List_Ex)
 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(PULONG,DEVINST,ULONG);
 CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(PULONG,DEVINST,ULONG,HMACHINE);
+CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(PDEVINST,DEVINSTID_A,ULONG);
+CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(PDEVINST,DEVINSTID_W,ULONG);
+#define     CM_Locate_DevNode WINELIB_NAME_AW(CM_Locate_DevNode)
 
 #ifdef __cplusplus
 }




More information about the wine-cvs mailing list