Export (0) Print
Expand All
Expand Minimize

KeAreApcsDisabled routine

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

Syntax


BOOLEAN KeAreApcsDisabled(void);

Parameters

This routine has no parameters.

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.

Requirements

Version

Available in Windows XP and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

HwStorPortProhibitedDDIs

See also

KeAreAllApcsDisabled
KeEnterCriticalRegion
KeLeaveCriticalRegion

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft