KeLeaveGuardedRegion function

The KeLeaveGuardedRegion routine exits a guarded region entered by KeEnterGuardedRegion.

Syntax

NTKERNELAPI VOID KeLeaveGuardedRegion(

);

Parameters

This function has no parameters.

Return Value

None

Remarks

Guarded regions can be nested, so APCs are only reenabled once the thread exists the outermost guarded region.

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

Requirements

   
Windows version Available in Windows Server 2003 and later versions of Windows.
Target Platform Universal
Header ntddk.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<= APC_LEVEL"
DDI compliance rules GuardedRegions, IrqlKeApcLte2, WithinCriticalRegion, HwStorPortProhibitedDDIs

See Also

KeEnterGuardedRegion