CompletionRoutineRegistered 規則 (wdm)
CompletionRoutineRegistered 規則會指定,如果分派例程使用 IoSetCompletionRoutineEx 註冊 IoCompletion 例程,則分派例程必須在之後呼叫 IoCallDriver 或 PoCallDriver。
IoSetCompletionRoutineEx 例程會配置仍配置的記憶體,直到 IoCompletion 例程執行為止。 驅動程式必須呼叫IoCallDriver或PoCallDriver,以確保其IoCompletion例程會執行;否則,核心將會流失記憶體。
驅動程式模型:WDM
測試方法
在編譯時期 |
---|
執行 靜態驅動程序驗證器 ,並指定 CompletionRoutineRegistered 規則。 使用下列步驟來執行程式碼的分析:如需詳細資訊,請參閱 使用靜態驅動程式驗證器尋找驅動程式中的瑕疵。 |
適用於
IoCallDriverIoSetCompletionRoutineIoSetCompletionRoutineExPoCallDriver