CComObjectRootEx::InternalAddRef

ULONG InternalAddRef( );

Return Value

A value that may be useful for diagnostics and testing.

Remarks

Increments the reference count of a nonaggregated object by 1. If the thread model is multithreaded, InterlockedIncrement is used to prevent more than one thread from changing the reference count at the same time.

CComObjectRootEx OverviewClass Members

See Also   CComObjectRootEx::InternalRelease, InterlockedIncrement in the Win32 SDK