ExReleaseRundownProtectionEx 函式 (wdm.h)
ExReleaseRundownProtectionEx 例程會釋放呼叫者先前透過呼叫 ExAcquireRundownProtectionEx 例程取得的 run-down 保護。
語法
void ExReleaseRundownProtectionEx(
[in, out] PEX_RUNDOWN_REF RunRef,
[in] ULONG Count
);
參數
[in, out] RunRef
先前呼叫 exInitializeRundownProtection 例程所初始化之EX_RUNDOWN_REF 結構的指標。 Run-down 保護例程會使用此結構來追蹤相關聯共用物件的執行狀態。 此結構對驅動程式不透明。
[in] Count
要遞減至 物件執行實例計數的量。 如需詳細資訊,請參閱。
傳回值
沒有
言論
RunRef 參數指向追蹤相關聯物件執行狀態的 EX_RUNDOWN_REF 結構。 此狀態資訊包含目前對物件生效之執行保護實例的計數。 ExAcquireRundownProtectionEx 和 ExReleaseRundownProtectionEx 例程會依任意數量遞增和遞減此計數。 兩個相關的例程,ExAcquireRundownProtection 和 ExReleaseRundownProtection,遞增和遞減此計數。
只要 run-down 區塊本身為非分頁,就可以在 DISPATCH_LEVEL呼叫此函式。
如需詳細資訊,請參閱 Run-Down 保護。
要求
要求 | 價值 |
---|---|
最低支援的用戶端 | 從 Windows Server 2003 開始提供。 |
目標平臺 | 普遍 |
標頭 | wdm.h (包括 Wdm.h) |
連結庫 | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <= DISPATCH_LEVEL (請參閱備註) |
DDI 合規性規則 | HwStorPortProhibitedDIs(storport) |