The KeEnterCriticalRegion routine temporarily disables the delivery of normal kernel APCs; special kernel-mode APCs are still delivered.
VOID
KeEnterCriticalRegion(
);
None
None
Declared in ntddk.h. Include ntddk.h.
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.