|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
CComAutoCriticalSection provides methods for obtaining and releasing ownership of a critical section object.
CComAutoCriticalSection is similar to class CComCriticalSection, except CComAutoCriticalSection automatically initializes the critical section object in the constructor.
The Init and Term methods from CComCriticalSection are not available when using this class.