Share via


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

Reference

CComObjectGlobal Class

CComObjectGlobal::Release

Other Resources

CComObjectGlobal Members