https://git.reactos.org/?p=reactos.git;a=commitdiff;h=528fede0341ad0d669003…
commit 528fede0341ad0d6690031054f07b0c29afbb09d
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Jul 18 15:34:03 2021 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Aug 5 23:45:23 2021 +0200
[SETUPAPI] Add stubs for SetupDiSetDriverInstallParamsA/W
---
dll/win32/setupapi/setupapi.spec | 4 ++--
dll/win32/setupapi/stubs.c | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/dll/win32/setupapi/setupapi.spec b/dll/win32/setupapi/setupapi.spec
index 2af90d61106..1d96d8bcb16 100644
--- a/dll/win32/setupapi/setupapi.spec
+++ b/dll/win32/setupapi/setupapi.spec
@@ -382,8 +382,8 @@
@ stub SetupDiSetDeviceInterfaceDefault
@ stdcall SetupDiSetDeviceRegistryPropertyA(ptr ptr long ptr long)
@ stdcall SetupDiSetDeviceRegistryPropertyW(ptr ptr long ptr long)
-@ stub SetupDiSetDriverInstallParamsA
-@ stub SetupDiSetDriverInstallParamsW
+@ stdcall SetupDiSetDriverInstallParamsA(ptr ptr ptr ptr)
+@ stdcall SetupDiSetDriverInstallParamsW(ptr ptr ptr ptr)
@ stdcall SetupDiSetSelectedDevice(ptr ptr)
@ stdcall SetupDiSetSelectedDriverA(ptr ptr ptr)
@ stdcall SetupDiSetSelectedDriverW(ptr ptr ptr)
diff --git a/dll/win32/setupapi/stubs.c b/dll/win32/setupapi/stubs.c
index f132a8a0fc4..17ded50eeb3 100644
--- a/dll/win32/setupapi/stubs.c
+++ b/dll/win32/setupapi/stubs.c
@@ -149,3 +149,26 @@ SetupVerifyInfFileW(
return FALSE;
}
+BOOL WINAPI
+SetupDiSetDriverInstallParamsA(
+ _In_ HDEVINFO DeviceInfoSet,
+ _In_opt_ PSP_DEVINFO_DATA DeviceInfoData,
+ _In_ PSP_DRVINFO_DATA_A DriverInfoData,
+ _In_ PSP_DRVINSTALL_PARAMS DriverInstallParams)
+{
+ FIXME("Stub %p %p %p %p\n", DeviceInfoSet, DeviceInfoData, DriverInfoData,
DriverInstallParams);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+BOOL WINAPI
+SetupDiSetDriverInstallParamsW(
+ _In_ HDEVINFO DeviceInfoSet,
+ _In_opt_ PSP_DEVINFO_DATA DeviceInfoData,
+ _In_ PSP_DRVINFO_DATA_W DriverInfoData,
+ _In_ PSP_DRVINSTALL_PARAMS DriverInstallParams)
+{
+ FIXME("Stub %p %p %p %p\n", DeviceInfoSet, DeviceInfoData, DriverInfoData,
DriverInstallParams);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}