CComCritSecLock::Lock

 

Call this method to lock the critical section object.

Syntax

HRESULT Lock( ) throw( );

Return Value

Returns S_OK if the object has successfully been locked, or an error HRESULT on failure.

Remarks

If the object is already locked, an ASSERT error will occur in debug builds.

Requirements

Header: atlbase.h

See Also

CComCritSecLock Class
CComCritSecLock::Unlock