KeLeaveCriticalRegion function

The KeLeaveCriticalRegion routine reenables the delivery of normal kernel-mode APCs that were disabled by a preceding call to KeEnterCriticalRegion.

Syntax

void KeLeaveCriticalRegion();

Parameters

This function has no parameters.

Return value

None

Remarks

Highest-level drivers can call this routine while running in the context of the thread that requested the current I/O operation.

Requirements

   
Minimum supported client Available starting with Windows 2000.
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 CriticalRegions, IrqlKeApcLte2, WithinCriticalRegion, HwStorPortProhibitedDDIs, WithinCriticalRegion(storport)

See also

KeAreApcsDisabled

KeEnterCriticalRegion