CRefCountImpl Class

class CRefCountImpl

Template to implement reference counting for an interface. This class derives itself from the template parameter passed in and overrides AddRef and Release.

Defined in: RefCount.h

Class Members

CRefCountImpl()

Constructor to set reference count to zero.

virtual ~CRefCountImpl()

Empty virtual destructor

ULONG STDMETHODCALLTYPE  AddRef()

Constructor to set reference count to zero.

ULONG STDMETHODCALLTYPE  Release()

Constructor to set reference count to zero.

ULONG m_ulRefCount

Stores reference count for object.

ULONG STDMETHODCALLTYPE  AddRef()

Constructor to set reference count to zero.

ULONG STDMETHODCALLTYPE  Release()

Constructor to set reference count to zero.