We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

CComCritSecLock Class

This class provides methods for locking and unlocking a critical section object.

   class TLock
> class CComCritSecLock


The object to be locked and unlocked.

Use this class to lock and unlock objects in a safer way than with the CComCriticalSection Class or CComAutoCriticalSection Class.

Header: atlbase.h