BOOL Lock( );
BOOL Lock( DWORD dwTimeout );
Return Value
Nonzero if the function was successful; otherwise 0.
Parameters
dwTimeout
Lock ignores this parameter value.
Remarks
Call this member function to gain access to the critical section object. Lock is a blocking call that will not return until the critical section object is signaled (becomes available).
If timed waits are necessary, you can use a CMutex object instead of a CCriticalSection object.
CCriticalSection Overview | Class Members | Hierarchy Chart
See Also CSingleLock::Lock