MarkPowerDown 規則 (wdm)

MarkPowerDown 規則 IRP_MJ_POWER會指定 systemPowerState IRP IRP_MN_SET_POWER從 s0 到 [S1...S5] 已畫筆。

此規則僅適用於 FDO 和 FIDO 驅動程式。

驅動程式模型:WDM

測試方法

在編譯時期

執行 靜態驅動程式驗證器 ,並指定 MarkPowerDown 規則。

使用下列步驟來執行程式碼的分析:
  1. 準備程式代碼 (使用角色類型宣告) 。
  2. 執行靜態驅動程式驗證程式。
  3. 檢視和分析結果。

如需詳細資訊,請參閱 使用靜態驅動程式驗證器在驅動程式中尋找瑕疵

適用於

IoAcquireRemoveLockIoAllocateIrpIoCallDriverIoGetDeviceInterfacesIoMarkIrpPendingIoRegisterPlugPlayNotificationIoSetCompletionRoutineIoSetCompletionRoutineExPoCallDriver