The DeleteCriticalSection function releases all resources used by an unowned critical section object.
VOID DeleteCriticalSection(
LPCRITICAL_SECTION lpCriticalSection |
// pointer to critical section object |
); |
This function does not return a value.
Deleting a critical section object releases all system resources used by the object. Once deleted, the critical section object cannot be specified in the EnterCriticalSection, TryEnterCriticalSection, or LeaveCriticalSection function.
EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection TryEnterCriticalSection