[PATCH v2 2/4] ntoskrnl.exe: Implement loading plug and play devices

Aric Stewart aric at codeweavers.com
Wed Aug 31 11:38:30 CDT 2016

v2: No longer maintaining a device store
    Suggestions from Sebastian Lackner

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/pnp_manager.c | 196 +++++++++++++++++++++++++++++++++++++++-
 include/ddk/wdm.h               |   3 +-
 2 files changed, 197 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0002-ntoskrnl.exe-Implement-loading-plug-and-play-device.txt
Type: text/x-patch
Size: 8461 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160831/d21e1386/attachment-0001.bin>

More information about the wine-patches mailing list