The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
CComCritSecLock::Lock
Call this method to lock the critical section object.
HRESULT Lock( ) throw( );
Returns S_OK if the object has successfully been locked, or an error HRESULT on failure.
If the object is already locked, an ASSERT error will occur in debug builds.
Requirements
Header: atlbase.h
Show: