Export (0) Print
Expand All
Expand Minimize

KeEnterGuardedRegion routine

The KeEnterGuardedRegion routine enters a guarded region, which disables all kernel-mode APC delivery to the current thread.

Syntax


VOID KeEnterGuardedRegion(void);

Parameters

This routine has no parameters.

Return value

None

Remarks

To exit a guarded region entered with KeEnterGuardedRegion, call the KeLeaveGuardedRegion routine. Guarded regions can be nested. APCs are not reenabled until the thread exits the outermost guarded region.

For more information about guarded regions, see Critical Regions and Guarded Regions.

Requirements

Version

Available in Windows Server 2003 and later versions of Windows.

Header

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

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

DDI compliance rules

GuardedRegions, IrqlKeApcLte2, WithinCriticalRegion, HwStorPortProhibitedDDIs

See also

KeLeaveGuardedRegion

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft