InitializeCriticalSectionAndSpinCount Function
Initializes a critical section object and sets the spin count for the critical section. Spinning means that when a thread tries to acquire a critical section that is locked, the thread enters a loop, checks to see if the lock is released, and if the lock is not released, the thread goes to sleep.
BOOL WINAPI InitializeCriticalSectionAndSpinCount( __in_out LPCRITICAL_SECTION lpCriticalSection, __in DWORD dwSpinCount );