Hardware Dev Center

Collapse the table of content
Expand the table of content
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

Target platform

Universal

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

DLL

NtosKrnl.exe

IRQL

<= APC_LEVEL

DDI compliance rules

GuardedRegions, IrqlKeApcLte2, WithinCriticalRegion, HwStorPortProhibitedDDIs

See also

KeLeaveGuardedRegion

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft