CComObjectGlobal::AddRef

Increments the reference count of the object by 1.

STDMETHOD_(ULONG, AddRef)( );

Return Value

A value that may be useful for diagnostics and testing.

Remarks

By default, AddRef calls _Module::Lock, where _Module is the global instance of CComModule or a class derived from it.

Requirements

Header: atlcom.h

See Also

Concepts

CComObjectGlobal Class

CComObjectGlobal Members

CComObjectGlobal::Release