For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
This class provides methods for obtaining and releasing ownership of a critical section object.
class CComAutoDeleteCriticalSection : public CComSafeDeleteCriticalSection
CComAutoDeleteCriticalSection derives from the class CComSafeDeleteCriticalSection. However,
CComAutoDeleteCriticalSection overrides the Term method to
private access, which forces internal memory cleanup to occur only when instances of this class go out of scope or are explicitly deleted from memory.