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

Sebastian Lackner sebastian at fds-team.de
Sun Sep 18 23:38:21 CDT 2016


On 15.09.2016 13:58, Aric Stewart wrote:
> 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(+)
> 

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>




More information about the wine-patches mailing list