UfxDeviceNotifySuspend 函式 (ufxclient.h)

通知 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
目標平台 Windows
標頭 ufxclient.h
程式庫 ufxstub.lib
IRQL DISPATCH_LEVEL