// udecxusbdevice.h
NTSTATUS UdecxUsbDevicePlugOutAndDelete(
[in] UDECXUSBDEVICE UdecxUsbDevice
);
View the official Windows Driver Kit DDI referenceNo description available.
Disconnects the virtual USB device.
UdecxUsbDevice [in]A handle to UDE device object. The client driver retrieved this pointer in the previous call to UdecxUsbDeviceCreate.
The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.
If the USB device needs to be removed at runtime, the client driver can call this method to indicate a disconnect event. After this call completes, the client driver can no longer use the device specified by the UdecxUsbDevice parameter; it must create another device by calling UdecxUsbDeviceCreate.
Architecture: USB Device Emulation (UDE)