KeAreAllApcsDisabled function (wdm.h)

The KeAreAllApcsDisabled routine indicates whether the calling thread is inside a guarded region or running at IRQL >= APC_LEVEL, which disables all APC delivery.

Syntax

BOOLEAN KeAreAllApcsDisabled();

Return value

KeAreAllApcsDisabled returns TRUE if the calling thread is inside a guarded region or running at IRQL >= APC_LEVEL, and FALSE otherwise.

Remarks

A thread inside a guarded region or running at IRQL >= APC_LEVEL has all APCs disabled, including special kernel APCs.

Requirements

Requirement Value
Minimum supported client Available in Windows Server 2003 and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

KeAreApcsDisabled