DeleteCriticalSection
This function releases all resources used by an unowned critical section object.
void DeleteCriticalSection(
LPCRITICAL_SECTION lpCriticalSection );
Parameters
- lpCriticalSection
[in] Pointer to the critical section object.
Return Values
None.
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.
If a critical section is deleted while it is still owned, the state of the threads waiting for ownership of the deleted critical section is undefined.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Winbase.h | Coremain.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
EnterCriticalSection, InitializeCriticalSection, LeaveCriticalSection
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.