[PATCH v4] ntoskrnl.exe: Send PnP and Power IRPs to plug and play devices

Aric Stewart aric at codeweavers.com
Wed Sep 14 13:58:24 CDT 2016


v2: use same helper function as get_device_id
    Suggestions from Sebastian Lackner
v3: shift code to ntoskrnl.c
v4: Suggestions from Sebastian Lackner

The drivers AddDevice function will be well behaved and call
IoAttachDeviceToDeviceStack. The Plug and Play manager will then
proceed to call IRP_MN_START_DEVICE on the top device of the device
stack. Then a IRP_MJ_POWER/IRP_MN_SET_POWER to PowerDeviceD0.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
---
 dlls/ntoskrnl.exe/ntoskrnl.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: v4-0001-ntoskrnl.exe-Send-PnP-and-Power-IRPs-to-plug-and-pl.txt
Type: text/x-patch
Size: 1894 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160914/f237947b/attachment.bin>


More information about the wine-patches mailing list