// udecxwdfdevice.h
NTSTATUS UdecxWdfDeviceNeedsReset(
[In] WDFDEVICE UdeWdfDevice,
[In] UDECX_WDF_DEVICE_RESET_TYPE ResetType
);
View the official Windows Driver Kit DDI referenceNo description available.
Informs the USB device emulation class extension (UdeCx) that the device needs a reset operation.
UdeWdfDevice [In]A handle to a framework device object that represents a USB device. The client driver initialized this object in the previous call to UdecxWdfDeviceAddUsbDeviceEmulation.
ResetType [In]A UDECX_WDF_DEVICE_RESET_TYPE-type value that indicates the type of reset. Only UdecxWdfDeviceResetAttemptPlatformLevelDeviceReset is supported at this time.
The function returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS error code.
If an existing reset operation is in progress, the function fails with a STATUS_DEVICE_BUSY error. Note that only UdecxWdfDeviceResetAttemptPlatformLevelDeviceReset is supported at this time. UdecxWdfDeviceResetAttemptFunctionLevelDeviceReset is not supported.