// ntddk.h
VOID KeEnterGuardedRegion();
View the official Windows Driver Kit DDI reference// wdm.h
VOID KeEnterGuardedRegion();
View the official Windows Driver Kit DDI referenceNo description available.
The KeEnterGuardedRegion routine enters a guarded region, which disables all kernel-mode APC delivery to the current thread.
To exit a guarded region entered with KeEnterGuardedRegion, call the KeLeaveGuardedRegion routine. Guarded regions can be nested. APCs are not reenabled until the thread exits the outermost guarded region.
For more information about guarded regions, see Critical Regions and Guarded Regions.
The KeEnterGuardedRegion routine enters a guarded region, which disables all kernel-mode APC delivery to the current thread.
To exit a guarded region entered with KeEnterGuardedRegion, call the KeLeaveGuardedRegion routine. Guarded regions can be nested. APCs are not reenabled until the thread exits the outermost guarded region.
For more information about guarded regions, see Critical Regions and Guarded Regions.