UdecxWdfDeviceNeedsReset function

Informs the USB device emulation class extension (UdeCx) that the device needs a reset operation.

Syntax

NTSTATUS UdecxWdfDeviceNeedsReset(
  WDFDEVICE                   UdeWdfDevice,
  UDECX_WDF_DEVICE_RESET_TYPE ResetType
);

Parameters

UdeWdfDevice

[In] A handle to a framework device object that represents the 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.

Return Value

The function returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS error code.

Remarks

If an existing reset operation is in progress, the function fails with a STATUS_DEVICE_BUSY error.

Requirements

   
Minimum KMDF version 1.27
Minimum UMDF version N/A
Header udecxwdfdevice.h (include Udecx.h)
Library Udecxstub.lib
IRQL PASSIVE_LEVEL

See Also

UDECX_WDF_DEVICE_RESET_TYPE