InitializeCriticalSection

  VOID InitializeCriticalSection(lpCriticalSection)    
  LPCRITICAL_SECTION lpCriticalSection;    

A critical section object is initialized using InitializeCriticalSection.

Parameters

lpCriticalSection

Supplies the address of a critical section object to be initialized. It is the callers responsibility to allocate the storage used by a critical section object.

Return Value

This function does not return a value.

Comments

Once a critical section object has been initialized threads within a single process may enter and exit critical sections using the critical section object. A critical section object may not be moved or copied. The application must also not modify the insides of the object, but must treat it as logically opaque.

See Also

DeleteCriticalSection, EnterCriticalSection, LeaveCriticalSection