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.
CComCriticalSection::Lock
Calls the Win32 function EnterCriticalSection, which waits until the thread can take ownership of the critical section object contained in the m_sec data member.
HRESULT Lock( ) throw( );
Returns S_OK on success, E_OUTOFMEMORY or E_FAIL on failure.
Requirements
Header: atlcore.h
Show: