[PATCH v5 (resend)] ntoskrnl.exe: Implement loading plug and play devices

Aric Stewart aric at codeweavers.com
Thu Sep 8 13:07:12 CDT 2016


v2: No longer maintaning a device store
    Suggestions from Sebastian Lackner
v3: moved to ntoskrnl.c
    Further refinements from Sebastian Lackner
v4: Update based on comments from Thomas Faber
v5: fix to buffer size (reorder set)

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/ntoskrnl.c | 187 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 186 insertions(+), 1 deletion(-)


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


More information about the wine-patches mailing list