DeleteCriticalSection  43GS38 

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

VOID DeleteCriticalSection(

    LPCRITICAL_SECTION lpCriticalSection

// pointer to critical section object 

   );

 

 

Parameters

lpCriticalSection

Points to the critical section object.

 

Return Values

This function does not return a value.

Remarks

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.

See Also

EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection, TryEnterCriticalSection