Previous Next

KeEnterCriticalRegion

The KeEnterCriticalRegion routine temporarily disables the delivery of normal kernel APCs; special kernel-mode APCs are still delivered.

VOID 
  KeEnterCriticalRegion(
     );

Parameters

None

Return Value

None

Headers

Declared in ntddk.h. Include ntddk.h.

Comments

Highest-level drivers can call this routine while running in the context of the thread that requested the current I/O operation. Any caller of this routine should call KeLeaveCriticalRegion as quickly as possible.

Callers of KeEnterCriticalRegion must be running at IRQL <= DISPATCH_LEVEL.

See Also

KeAreApcsDisabled, KeLeaveCriticalRegion