KeLeaveGuardedRegion function (ntddk.h)

The KeLeaveGuardedRegion routine exits a guarded region entered by KeEnterGuardedRegion.

Syntax

void KeLeaveGuardedRegion();

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

Requirement Value
Minimum supported client 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(wdm), HwStorPortProhibitedDDIs(storport), IrqlKeApcLte2(wdm), WithinCriticalRegion(wdm)

See also

KeEnterGuardedRegion