ExReleaseRundownProtectionEx 函式 (wdm.h)

ExReleaseRundownProtectionEx 例程會釋放呼叫者先前藉由呼叫 ExAcquireRundownProtectionEx 例程取得的向下執行保護。

語法

void ExReleaseRundownProtectionEx(
  [in, out] PEX_RUNDOWN_REF RunRef,
  [in]      ULONG           Count
);

參數

[in, out] RunRef

先前呼叫 ExInitializeRundownProtection 例程所初始化之EX_RUNDOWN_REF結構的指標。 執行保護例程會使用此結構來追蹤相關聯共用對象的執行狀態。 此結構對驅動程式不透明。

[in] Count

要遞減至物件執行實例計數的量。 如需詳細資訊,請參閱<備註>。

傳回值

備註

RunRef 參數會指向追蹤相關聯物件執行狀態的EX_RUNDOWN_REF結構。 此狀態資訊包含目前對物件生效之執行保護實例的計數。 ExAcquireRundownProtectionExExReleaseRundownProtectionEx 例程會依任意數量遞增和遞減此計數。 兩個相關的例程 ExAcquireRundownProtectionExReleaseRundownProtection,遞增並遞減此計數。

只要執行區塊本身為非分頁,就可以在DISPATCH_LEVEL呼叫此函式。

如需詳細資訊,請參閱 Run-Down Protection

規格需求

需求
最低支援的用戶端 從 Windows Server 2003 開始提供。
目標平台 Universal
標頭 wdm.h (包含 Wdm.h)
程式庫 NtosKrnl.lib
Dll NtosKrnl.exe
IRQL <= DISPATCH_LEVEL (请参阅备注)
DDI 合規性規則 HwStorPortProhibitedDIS (storport)

另請參閱

EX_RUNDOWN_REF

ExAcquireRundownProtection

ExAcquireRundownProtectionEx

ExInitializeRundownProtection

ExReleaseRundownProtection