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

Aric Stewart aric at codeweavers.com
Fri Sep 2 07:18:38 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 AttachedDevice.

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


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


More information about the wine-patches mailing list