https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/nf-ntddk-keleavecriticalregion
KeLeaveCriticalRegion function (ntddk.h) - Windows drivers | Microsoft Learn
The KeLeaveCriticalRegion routine reenables the delivery of normal kernel-mode APCs that were disabled by a preceding call to KeEnterCriticalRegion.
windows driversfunctionhmicrosoftlearn