Stefan Leichter : setupapi: Add stub for SetupDiSetSelectedDevice.
Alexandre Julliard
julliard at winehq.org
Fri Jan 7 09:36:26 CST 2011
Module: wine
Branch: master
Commit: 8fffb22f1e3e81dd5f745020f6fb235a9794697b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8fffb22f1e3e81dd5f745020f6fb235a9794697b
Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date: Thu Jan 6 23:49:18 2011 +0100
setupapi: Add stub for SetupDiSetSelectedDevice.
---
dlls/setupapi/setupapi.spec | 2 +-
dlls/setupapi/stubs.c | 10 ++++++++++
include/setupapi.h | 1 +
3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec
index f91d0d8..54083be 100644
--- a/dlls/setupapi/setupapi.spec
+++ b/dlls/setupapi/setupapi.spec
@@ -387,7 +387,7 @@
@ stdcall SetupDiSetDeviceRegistryPropertyW(ptr ptr long ptr ptr)
@ stub SetupDiSetDriverInstallParamsA
@ stub SetupDiSetDriverInstallParamsW
-@ stub SetupDiSetSelectedDevice
+@ stdcall SetupDiSetSelectedDevice(ptr ptr)
@ stub SetupDiSetSelectedDriverA
@ stub SetupDiSetSelectedDriverW
@ stub SetupDiUnremoveDevice
diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c
index 2354d84..8ba17d7 100644
--- a/dlls/setupapi/stubs.c
+++ b/dlls/setupapi/stubs.c
@@ -426,3 +426,13 @@ BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT M
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
+
+/***********************************************************************
+ * SetupDiSetSelectedDevice (SETUPAPI.@)
+ */
+BOOL WINAPI SetupDiSetSelectedDevice(HDEVINFO SetupDiSetSelectedDevice, PSP_DEVINFO_DATA DeviceInfoData)
+{
+ FIXME("(%p, %p) stub\n", SetupDiSetSelectedDevice, DeviceInfoData);
+
+ return TRUE;
+}
diff --git a/include/setupapi.h b/include/setupapi.h
index c4e1664..c15ec52 100644
--- a/include/setupapi.h
+++ b/include/setupapi.h
@@ -1635,6 +1635,7 @@ BOOL WINAPI SetupDiSetDeviceRegistryPropertyW(HDEVINFO, PSP_DEVINFO_DATA, DW
BOOL WINAPI SetupDiSetDriverInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINSTALL_PARAMS);
BOOL WINAPI SetupDiSetDriverInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINSTALL_PARAMS);
#define SetupDiSetDriverInstallParams WINELIB_NAME_AW(SetupDiSetDriverInstallParams)
+BOOL WINAPI SetupDiSetSelectedDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL WINAPI SetupDiSetSelectedDriverA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A);
BOOL WINAPI SetupDiSetSelectedDriverW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W);
#define SetupDiSetSelectedDriver WINELIB_NAME_AW(SetupDiSetSelectedDriver)
More information about the wine-cvs
mailing list