DeleteCriticalSection

  VOID DeleteCriticalSection(lpcs)    
  LPCRITICAL_SECTION lpcs; /* critical section to delete */

The DeleteCriticalSection function releases all resources used by an unowned critical section object.

Parameters

lpcs

Points to the critical section object to delete.

Comments

Deleting a critical section releases all system resources used by the critical section. Once deleted, the critical section may not be used by the EnterCriticalSection or LeaveCriticalSection functions.

See Also

EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection