Chip Davis
4588f10f8d
setupapi: Implement CM_Get_DevNode_Property[_Ex]W().
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 19:44:12 +01:00
Michael Müller
14d782d18a
setupapi/tests: Add test for IDF_CHECKFIRST and SetupPromptForDiskA/W.
...
With modifications from Hermes Belusca-Maito.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 19:41:03 +01:00
Michael Müller
0422c6c4d0
setupapi: Add support for IDF_CHECKFIRST flag in SetupPromptForDiskW.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=20465
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 19:41:02 +01:00
Thomas Faber
dc968dae42
setupapi/tests: Remove an unused variable.
...
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-08 21:56:36 +01:00
Alexandre Julliard
b3abc343c3
setupapi: Handle copy errors in SetupCommitFileQueueW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 12:51:50 +01:00
Derek Lesho
f1b94dc16c
setupapi: Add SetupGetInfDriverStoreLocationW stub.
...
Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-19 23:15:04 +01:00
Zhiyi Zhang
288a6625ad
setupapi: Set device SPDRP_CLASS registry property in create_device().
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 23:18:00 +01:00
Zhiyi Zhang
4fe3d7e220
setupapi/tests: Add default device registry property tests.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 23:18:00 +01:00
Zhiyi Zhang
177d6d7f89
setupapi/tests: Fix timeout on win10 1809+.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-18 23:18:00 +01:00
Jacek Caban
4346d68e1b
makedep: Use -Wl,-delayload option for winebuild delayimports.
...
Also fixes winebuild to correctly handle module extensions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-12 21:39:40 +01:00
Zebediah Figura
404cee2aa6
setupapi: Set the DeviceDesc value in SetupDiInstallDevice().
...
At least one PnP enumeration utility expects this.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-08 10:29:28 +01:00
Zebediah Figura
7d152715ef
setupapi: Set the device class in SetupDiBuildDriverInfoList().
...
This matches Windows XP behaviour. In Vista and later this appears to be done
by UpdateDriverForPlugAndPlayDevices().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-08 10:29:23 +01:00
Zebediah Figura
161a0c259a
setupapi: Fix setting filepart in SetupCopyOEMInfW().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-08 10:29:21 +01:00
Alexandre Julliard
b2b3975f46
setupapi: Define .inf section names for ARM platforms.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 00:33:46 +01:00
Vijay Kiran Kamuju
c59e9d302b
setupapi/tests: Remove win_9x checks.
...
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-22 23:04:27 +02:00
Zebediah Figura
a431b4b54a
setupapi: Fix handling of FILEOP_SKIP from the SPFILENOTIFY_STARTCOPY callback.
...
Fixes a regression introduced by 3e5c9798a8
.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47436
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-23 10:50:14 +02:00
Zebediah Figura
ab3cc3c11a
setupapi/tests: Add some tests for SPFILENOTIFY_STARTCOPY.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-23 10:50:12 +02:00
Sven Baars
ecbd2dd34b
setupapi: Fix an uninitialized variable warning (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 11:29:28 +02:00
Sven Baars
5f0d53e209
setupapi: Fix a path leak (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 11:29:28 +02:00
Sven Baars
448f4cc9a2
setupapi/tests: Fix a crash in the need_media tests.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 11:29:28 +02:00
Francois Gouget
21db058d14
setupapi/tests: A spelling fix in an ok() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Zhiyi Zhang
d5e24897e2
setupapi: Support full path enumerator in SetupDiGetClassDevs.
...
Based on a patch by Michael Müller.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=35345
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:34:32 +02:00
Alexandre Julliard
72d6759f3a
setupapi: Build with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 11:38:15 +02:00
Zebediah Figura
72f298e3f7
setupapi: Also start newly installed root PnP services in SetupDiInstallDevice().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-27 09:29:13 +02:00
Zebediah Figura
00e7134632
setupapi: Delay-load user32.
...
We want to load setupapi from services.exe. We do not want to initialize
user32 there, as that results in the creation of a window station.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-25 19:26:23 +02:00
André Hentschel
dae160ceda
setupapi/tests: Don't test functions directly when reporting GetLastError().
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-10 12:19:47 +02:00
Zebediah Figura
e2194b93b5
setupapi: Avoid adding duplicate devices in SetupDiGetClassDevs().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
eca57ed672
setupapi/tests: Add some tests for SetupDiGetDeviceInfoListDetail().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
bd12a0ace8
setupapi: Set the list device class to GUID_NULL when enumerating interfaces.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
676e19f399
setupapi/tests: Add some tests for DIGCF_DEVICEINTERFACE.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
5ff5c7036e
setupapi: Treat DIGCF_ALLCLASSES as if a NULL device class was given.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
301f66bf96
setupapi/tests: Add some tests for SetupDiGetClassDevs().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
bf09cca850
setupapi/tests: Test calling SetupDiEnumDeviceInterfaces() with a NULL device.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-28 12:06:45 +02:00
Zebediah Figura
b2adecd5e4
setupapi: Process the .Services subsection in SetupDiInstallDevice().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 14:36:31 +02:00
Zebediah Figura
cd6ee00cfd
setupapi: Process the .HW subsection in SetupDiInstallDevice().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 14:36:27 +02:00
Zebediah Figura
d4c18c89d5
setupapi: Copy the INF file to C:/windows/inf/ and record it in the driver key.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 14:36:23 +02:00
Zebediah Figura
dc9c4221bd
setupapi: Add a basic implementation of SetupDiInstallDevice().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 14:36:19 +02:00
Alexandre Julliard
d5b77f5a16
setupapi/tests: Avoid size_t in traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 12:18:59 +02:00
Zebediah Figura
6b2b6cde8b
setupapi: Fix error handling in SetupInstallServicesFromInfSection().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Zebediah Figura
56aab6aaf8
setupapi: Always fill output parameters in SetupCopyOEMInfA().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Zebediah Figura
29f65bc6a2
setupapi: Check all INF files in SetupCopyOEMInf().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Zebediah Figura
097e224af7
setupapi/tests: Clean up and expand tests for SetupCopyOEMInf().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:35 +02:00
Fabian Maurer
c77ba713d2
setupapi: Correct function parameter for CM_Set_Class_Registry_PropertyA/W.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47249
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-23 08:57:42 +02:00
Zebediah Figura
a37c4262e9
setupapi: Implement SetupDiInstallDeviceInterfaces().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-23 08:57:34 +02:00
Zebediah Figura
94256fccae
setupapi: Process interface sections in SetupDiInstallDriverFiles().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-23 08:57:31 +02:00
Zebediah Figura
1c25cc09b5
setupapi: Implement SetupDiInstallDriverFiles().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-23 08:57:28 +02:00
Zebediah Figura
a3a4751a76
setupapi: Implement device-specific co-installers in SetupDiCallClassInstaller().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:17:18 +02:00
Zebediah Figura
8b1050c7f4
setupapi: Implement class co-installers in SetupDiCallClassInstaller().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:17:16 +02:00
Zebediah Figura
afba7d9d93
setupapi: Call DIF_DESTROYPRIVATEDATA when deleting a device.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:17:13 +02:00
Zebediah Figura
fce26e60cc
setupapi: Implement custom class installers in SetupDiCallClassInstaller().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:17:11 +02:00