#ifndef _NTRTL_H
/**
* The RtlLeaveCriticalSection routine releases ownership of the specified critical section object.
*
* \param CriticalSection A pointer to the critical section object.
* \return NTSTATUS Successful or errant status.
* \remarks Acquisition by the owning thread increments recursion. Each successful enter/try-enter needs one leave on that thread. Try-enter FALSE does not acquire a level. A successful status or unlocked snapshot is not a lifetime guarantee for the lock storage.
*/
_Releases_exclusive_lock_(*CriticalSection)
NTSYSAPI
NTSTATUS
NTAPI
RtlLeaveCriticalSection(
_Inout_ PRTL_CRITICAL_SECTION CriticalSection
);
View code on GitHubReleases ownership of the specified critical section object.
LeaveCriticalSection maps directly to this function.