The KeAreApcsDisabled routine returns whether kernel APC delivery is disabled for the current thread.
NTKERNELAPI
BOOLEAN
KeAreApcsDisabled(
VOID
);
None
KeAreApcsDisabled returns TRUE if kernel APC delivery for the current thread is disabled, FALSE otherwise.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
Kernel APCs can be disabled by a call to KeEnterCriticalRegion, and then subsequently reenabled by a call to KeLeaveCriticalRegion.
The system still delivers special kernel APCs even if KeAreApcsDisabled returns TRUE.
Callers of this routine must be running at IRQL <= DISPATCH_LEVEL.