[PATCH v3] ntoskrnl.exe: Implement removing plug and play devices

Aric Stewart aric at codeweavers.com
Mon Sep 19 13:38:40 CDT 2016


v2: Suggestions from Sebastian Lackner
v3: Move code to ntoskrnl.c

Device removal is more simplistic. When the bus driver detects that a device has
been removed then we again make a IoInvalidateDeviceRelations.  Then the
plug and play manager sends a IRP_MN_SURPRISE_REMOVAL followed by a
IRP_MN_REMOVE_DEVICE ioctl to the device stack.

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0001-ntoskrnl.exe-Implement-removing-plug-and-play-devic.txt
Type: text/x-patch
Size: 790 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160919/626faa50/attachment.bin>


More information about the wine-patches mailing list