UdecxUsbDevicePlugOutAndDelete - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// udecxusbdevice.h

NTSTATUS UdecxUsbDevicePlugOutAndDelete(
  [in] UDECXUSBDEVICE UdecxUsbDevice
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-udecxusbdevice-udecxusbdeviceplugoutanddelete)

UdecxUsbDevicePlugOutAndDelete function

Description

Disconnects the virtual USB device.

Parameters

UdecxUsbDevice [in]

A handle to UDE device object. The client driver retrieved this pointer in the previous call to UdecxUsbDeviceCreate.

Return value

The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return an appropriate NTSTATUS error code.

Remarks

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.

See also

Architecture: USB Device Emulation (UDE)

Write a UDE client driver