UfxDeviceNotifyResume 函数 (ufxclient.h)
通知 UFX 有关 USB 总线恢复事件。
语法
void UfxDeviceNotifyResume(
[in] UFXDEVICE UfxDevice
);
参数
[in] UfxDevice
通过调用 UfxDeviceCreate 调用驱动程序创建的 UFX 设备对象的句柄。
返回值
没有
言论
客户端驱动程序在收到总线恢复事件时调用 UfxDeviceNotifyResume。 控制器应返回到在总线恢复事件时所在的相同状态。
客户端驱动程序通常从其 EvtInterruptDpc 回调函数调用 UfxDeviceNotifyResume。 以下示例演示如何处理恢复事件。
case DeviceEventWakeUp:
if (ControllerContext->Suspended) {
ControllerContext->Suspended = FALSE;
UfxDeviceNotifyResume(ControllerContext->UfxDevice);
}
break;
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 10 |
目标平台 | 窗户 |
标头 | ufxclient.h |
库 | ufxstub.lib |
IRQL | DISPATCH_LEVEL |