UdecxUsbDeviceLinkPowerEntryComplete function (udecxusbdevice.h)

Completes an asynchronous request for bringing the device out of a low power state.

Syntax

void UdecxUsbDeviceLinkPowerEntryComplete(
  [in] UDECXUSBDEVICE UdecxUsbDevice,
  [in] NTSTATUS       CompletionStatus
);

Parameters

[in] UdecxUsbDevice

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

[in] CompletionStatus

An appropriate NTSTATUS error code that indicates the success or failure of the asynchronous operation.

Return value

None

Remarks

When the USB device emulation class extension (UdeCx) gets a request to bring the device from low power state and enter working state, it invokes the client driver's implementation of the EVT_UDECX_USB_DEVICE_D0_ENTRY callback function.

After the client driver has performed the necessary steps for bringing the virtual USB device to working state, the driver calls this method to notify the class extension that it has completed the power request.

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Minimum KMDF version 1.15
Header udecxusbdevice.h (include Udecx.h)
Library Udecxstub.lib
IRQL PASSIVE_LEVEL

See also

Architecture: USB Device Emulation (UDE)

EVT_UDECX_USB_DEVICE_D0_ENTRY

Write a UDE client driver