共用方式為


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
目標平臺 窗戶
標頭 ufxclient.h
連結庫 ufxstub.lib
IRQL DISPATCH_LEVEL