[PATCH 1/4] ntoskrnl.exe: Implement IoInvalidateDeviceRelations to initialize device driver store

Aric Stewart aric at codeweavers.com
Mon Aug 29 13:49:33 CDT 2016

We are not handling installing drivers just yet, so we just make use of the
critical device store. These are drivers that, on Windows, are automatically
loaded on boot every time.  This database is maintained in
[CurrentControlSet/Control/CriticalDeviceDatabase] The keys in this registry key
represent a HardwareID that match a device. We query the IDs from the bus
device’s BusQueryHardwareIDs and if we find a match (from most specific to most
general) we look at that registry key. The CriticalDeviceDatabase entry
specify a [Service] value representing the driver.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
 dlls/ntoskrnl.exe/Makefile.in       |   3 +-
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |   2 +-
 dlls/ntoskrnl.exe/pnp_manager.c     | 185 ++++++++++++++++++++++++++++++++++++
 include/ddk/wdm.h                   |   1 +
 4 files changed, 189 insertions(+), 2 deletions(-)
 create mode 100644 dlls/ntoskrnl.exe/pnp_manager.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntoskrnl.exe-Implement-IoInvalidateDeviceRelations-to-.txt
Type: text/x-patch
Size: 7356 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160829/7a8a458a/attachment.bin>

More information about the wine-patches mailing list