CComObjectGlobal::AddRef

ULONG AddRef( );

Return Value

A value that may be useful for diagnostics and testing.

Remarks

Increments the reference count of the object by 1. By default, AddRef calls _Module::Lock, where _Module is the global instance of CComModule or a class derived from it.

CComObjectGlobal OverviewClass Members

See Also   CComObjectGlobal::Release, CComModule::Lock