Previous Next

KeAreApcsDisabled

The KeAreApcsDisabled routine returns whether kernel APC delivery is disabled for the current thread.

NTKERNELAPI
BOOLEAN
  KeAreApcsDisabled(
    VOID
    );

Parameters

None

Return Value

KeAreApcsDisabled returns TRUE if kernel APC delivery for the current thread is disabled, FALSE otherwise.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comment

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.

See Also

KeEnterCriticalRegion, KeLeaveCriticalRegion