Create critical_section

Example of critical section. The EnterCriticalSection function I already mentioned is complemented by a TryEnterCriticalSection function that provides a nonblocking alternative. The LeaveCriticalSection function releases the lock, and DeleteCriticalSection releases any kernel resources that might have been allocated along the way.