KeAcquireGuardedMutexUnsafe 函式 (wdm.h)
KeAcquireGuardedMutexUnsafe 在受防護區域內取得受防護的 Mutex。
語法
void KeAcquireGuardedMutexUnsafe(
PKGUARDED_MUTEX FastMutex
);
參數
FastMutex
[in, out]受防護 Mutex 之 KGUARDED_MUTEX 結構的指標。
傳回值
沒有
言論
使用 KeReleaseGuardedMutexUnsafe,以 KeAcquireMutexUnsafe取得的受防護 Mutex。
KeAcquireGuardedMutexUnsafe 不會隱含地將呼叫線程放在受防護區域內。 包含在 KeAcquireGuardedMutexUnsafe/KeReleaseGuardedMutexUnsafe 組內的程式代碼必須在 IRQL = APC_LEVEL 或受防護區域內執行。 對於不保證在受防護區域內執行的程式代碼,請使用 KeAcquireGuardedMutex 和 KeReleaseGuardedMutexUnsafe。
無法以遞歸方式取得受防護的 Mutex:如果線程呼叫 KeAcquireGuardedMutexUnsafe時,線程已經持有 mutex,線程將會死結。
如需受防護 Mutex 的詳細資訊,請參閱 Fast Mutexes 和 Guarded Mutexes。
要求
要求 | 價值 |
---|---|
支援的最低伺服器 | Windows Server 2003 |
標頭 | wdm.h |
IRQL | <= APC_LEVEL |
DDI 合規性規則 | HwStorPortProhibitedDIs(storport),IrqlKeApcLte1(wdm) |