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

Aric Stewart aric at codeweavers.com
Thu Sep 15 06:58:21 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
v5: Missed the IRP definition with previous code changes

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 | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)


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


More information about the wine-patches mailing list