UfxDeviceNotifyResume function (ufxclient.h)

Notifies UFX about a USB bus resume event.

Syntax

void UfxDeviceNotifyResume(
  [in] UFXDEVICE UfxDevice
);

Parameters

[in] UfxDevice

A handle to a UFX device object that the driver created by calling UfxDeviceCreate.

Return value

None

Remarks

The client driver calls UfxDeviceNotifyResume when it receives a bus resume event. The controller should return to the same state it was in at the time of the bus resume event.

The client driver typically calls UfxDeviceNotifyResume from its EvtInterruptDpc callback function. The following example shows how to handle a resume event.

    case DeviceEventWakeUp:
        if (ControllerContext->Suspended) {
            ControllerContext->Suspended = FALSE;
            UfxDeviceNotifyResume(ControllerContext->UfxDevice);
        }
        break;

Requirements

Requirement Value
Minimum supported client Windows 10
Target Platform Windows
Header ufxclient.h
Library ufxstub.lib
IRQL DISPATCH_LEVEL