Andrey Gusev : setupapi: Add CM_Get_Sibling_Ex stub.
Alexandre Julliard
julliard at winehq.org
Mon Jan 30 15:39:16 CST 2017
Module: wine
Branch: master
Commit: 1ce40299941f03fb14ca73e771c1d6ea0090165a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1ce40299941f03fb14ca73e771c1d6ea0090165a
Author: Andrey Gusev <andrey.goosev at gmail.com>
Date: Fri Jan 27 15:19:44 2017 +0200
setupapi: Add CM_Get_Sibling_Ex stub.
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/cfgmgr32/cfgmgr32.spec | 2 +-
dlls/setupapi/setupapi.spec | 2 +-
dlls/setupapi/stubs.c | 10 ++++++++++
include/cfgmgr32.h | 5 +++--
4 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec
index efc5dbb..2ccd29b 100644
--- a/dlls/cfgmgr32/cfgmgr32.spec
+++ b/dlls/cfgmgr32/cfgmgr32.spec
@@ -113,7 +113,7 @@
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
-@ stub CM_Get_Sibling_Ex
+@ stdcall CM_Get_Sibling_Ex(ptr long long ptr) setupapi.CM_Get_Sibling_Ex
@ stdcall CM_Get_Version() setupapi.CM_Get_Version
@ stub CM_Get_Version_Ex
@ stub CM_Intersect_Range_List
diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index 88476d6..ab2090d 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -124,7 +124,7 @@
@ stub CM_Get_Res_Des_Data_Size
@ stub CM_Get_Res_Des_Data_Size_Ex
@ stub CM_Get_Sibling
-@ stub CM_Get_Sibling_Ex
+@ stdcall CM_Get_Sibling_Ex(ptr long long ptr)
@ stdcall CM_Get_Version()
@ stub CM_Get_Version_Ex
@ stub CM_Intersect_Range_List
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index a738eec..9ea23b7 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -499,6 +499,16 @@ CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(LPGUID class, ULONG prop, PULON
return CR_FAILURE;
}
+/***********************************************************************
+ * CM_Get_Sibling_Ex (SETUPAPI.@)
+ */
+CONFIGRET WINAPI CM_Get_Sibling_Ex(
+ PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags, HMACHINE hMachine)
+{
+ FIXME("%p 0x%08x 0x%08x %p: stub\n", pdnDevInst, DevInst, ulFlags, hMachine);
+ return CR_FAILURE;
+}
+
CONFIGRET WINAPI CM_Reenumerate_DevNode(DEVINST dnDevInst, ULONG ulFlags)
{
FIXME("0x%08x 0x%08x: stub\n", dnDevInst, ulFlags);
diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h
index 8573067..b8def60 100644
--- a/include/cfgmgr32.h
+++ b/include/cfgmgr32.h
@@ -189,6 +189,8 @@ CMAPI CONFIGRET WINAPI CM_Create_DevNodeA(PDEVINST,DEVINSTID_A,DEVINST,ULONG);
CMAPI CONFIGRET WINAPI CM_Create_DevNodeW(PDEVINST,DEVINSTID_W,DEVINST,ULONG);
#define CM_Create_DevNode WINELIB_NAME_AW(CM_Create_DevNode)
CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE);
+CMAPI CONFIGRET WINAPI CM_Get_Child(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags);
+CMAPI CONFIGRET WINAPI CM_Get_Child_Ex(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE 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)
@@ -203,14 +205,13 @@ 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_Get_Sibling_Ex(PDEVINST pdnDevInst, DEVINST DevInst, ULONG ulFlags, HMACHINE hMachine);
CMAPI WORD WINAPI CM_Get_Version(void);
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)
CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key(DEVINST dnDevInst, REGSAM access, ULONG ulHardwareProfile,
REGDISPOSITION disposition, PHKEY phkDevice, ULONG ulFlags);
-CMAPI CONFIGRET WINAPI CM_Get_Child(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags);
-CMAPI CONFIGRET WINAPI CM_Get_Child_Ex(PDEVINST pdnDevInst, DEVINST dnDevInst, ULONG ulFlags, HMACHINE hMachine);
#ifdef __cplusplus
}
More information about the wine-cvs
mailing list