CComObjectRootEx Members

Methods

CComObjectRootEx

Constructor.

InternalAddRef

Increments the reference count for a nonaggregated object.

InternalRelease

Decrements the reference count for a nonaggregated object.

Lock

If the thread model is multithreaded, obtains ownership of a critical section object.

Unlock

If the thread model is multithreaded, releases ownership of a critical section object.

CComObjectRootBase Methods

FinalConstruct

Override in your class to perform any initialization required by your object.

FinalRelease

Override in your class to perform any cleanup required by your object.

OuterAddRef

Increments the reference count for an aggregated object.

OuterQueryInterface

Delegates to the outer IUnknown of an aggregated object.

OuterRelease

Decrements the reference count for an aggregated object.

Static Functions

InternalQueryInterface

Delegates to the IUnknown of a nonaggregated object.

ObjectMain

Called during module initialization and termination for derived classes listed in the object map.

Data Members

m_dwRef

With m_pOuterUnknown, part of a union. Used when the object is not aggregated to hold the reference count of AddRef and Release.

m_pOuterUnknown

With m_dwRef, part of a union. Used when the object is aggregated to hold a pointer to the outer unknown.

See Also

Reference

CComObjectRootEx Class