#ifndef _NTRTL_H
/**
* The RtlEnterCriticalSection routine waits for ownership of the specified critical section object, blocking the calling thread until the object is available.
*
* \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.
*/
_Acquires_exclusive_lock_(*CriticalSection)
NTSYSAPI
NTSTATUS
NTAPI
RtlEnterCriticalSection(
_Inout_ PRTL_CRITICAL_SECTION CriticalSection
);
View code on GitHubWaits for ownership of the specified critical section object.
EnterCriticalSection maps directly to this function.