RtlLeaveCriticalSection - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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
    );

#endif

View code on GitHub

NtDoc

Releases ownership of the specified critical section object.

Related Win32 API

LeaveCriticalSection maps directly to this function.

See also