通知 UFX 有关 USB 总线挂起事件。
语法
void UfxDeviceNotifySuspend(
[in] UFXDEVICE UfxDevice
);
参数
[in] UfxDevice
通过调用 UfxDeviceCreate 调用驱动程序创建的 UFX 设备对象的句柄。
返回值
没有
言论
客户端驱动程序在收到总线挂起事件时调用 UfxDeviceNotifySuspend。 应在总线挂起时重置默认终结点。 设备应移动到低功率模式。
客户端驱动程序通常从其 EvtInterruptDpc 回调函数调用 UfxDeviceNotifySuspend。 以下示例演示如何处理挂起事件。
case DeviceEventSuspend:
if (!ControllerContext->Suspended) {
ControllerContext->Suspended = TRUE;
UfxDeviceNotifySuspend(ControllerContext->UfxDevice);
}
break;
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 10 |
目标平台 | 窗户 |
标头 | ufxclient.h |
库 | ufxstub.lib |
IRQL | DISPATCH_LEVEL |