Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DeleteCriticalSection

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function releases all resources used by a critical section object that is not owned.


void DeleteCriticalSection(
  LPCRITICAL_SECTION lpCriticalSection
);
lpCriticalSection

[in] Pointer to the critical section object.

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.

Each object type, such as memory maps, semaphores, events, message queues, mutexes, and watchdog timers, has its own separate namespace. Empty strings, "", are handled as named objects. On Windows desktop-based platforms, synchronization objects all share the same namespace.

Headerwinbase.h
LibraryCoremain.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.