UdecxWdfDeviceNeedsReset - NtDoc

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

NTSTATUS UdecxWdfDeviceNeedsReset(
  [In] WDFDEVICE                   UdeWdfDevice,
  [In] UDECX_WDF_DEVICE_RESET_TYPE ResetType
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-udecxwdfdevice-udecxwdfdeviceneedsreset)

UdecxWdfDeviceNeedsReset function

Description

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

Parameters

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.

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. Note that only UdecxWdfDeviceResetAttemptPlatformLevelDeviceReset is supported at this time. UdecxWdfDeviceResetAttemptFunctionLevelDeviceReset is not supported.

See also

UDECX_WDF_DEVICE_RESET_TYPE