KeAreApcsDisabled - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddk.h

BOOLEAN KeAreApcsDisabled();

View the official Windows Driver Kit DDI reference
// wdm.h

BOOLEAN KeAreApcsDisabled();

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-keareapcsdisabled)

KeAreApcsDisabled function (ntddk.h)

Description

The KeAreApcsDisabled routine returns whether the calling thread is within a critical region, which disables normal kernel APC delivery, or a guarded region, which disables all kernel APC delivery.

Return value

KeAreApcsDisabled returns TRUE if the thread is within a critical region or a guarded region, and FALSE otherwise.

Remarks

A thread running at IRQL = PASSIVE_LEVEL can use KeAreApcsDisabled to determine if normal kernel APCs are disabled. A thread that is inside a critical region has both user APCs and normal kernel APCs disabled, but not special kernel APCs. A thread that is inside a guarded region has all APCs disabled, including special kernel APCs.

See also

KeAreAllApcsDisabled

KeEnterCriticalRegion

KeLeaveCriticalRegion


Windows Driver Kit DDI reference (nf-wdm-keareapcsdisabled)

KeAreApcsDisabled function (wdm.h)

Description

The KeAreApcsDisabled routine returns whether the calling thread is within a critical region or a guarded region, which disables normal kernel APC delivery.

Return value

KeAreApcsDisabled returns TRUE if the thread is within a critical region or a guarded region, and FALSE otherwise.

Remarks

A thread running at IRQL = PASSIVE_LEVEL can use KeAreApcsDisabled to determine if normal kernel APCs are disabled. A thread that is inside a critical region has both user APCs and normal kernel APCs disabled, but not special kernel APCs. A thread that is inside a guarded region has all APCs disabled, including special kernel APCs.

See also

KeAreAllApcsDisabled

KeEnterCriticalRegion

KeLeaveCriticalRegion