CComObjectRootEx::InternalAddRef

Increments the reference count of a nonaggregated object by 1.

ULONG InternalAddRef( );

Return Value

A value that may be useful for diagnostics and testing.

Remarks

If the thread model is multithreaded, InterlockedIncrement is used to prevent more than one thread from changing the reference count at the same time.

Requirements

Header: atlcom.h

See Also

Reference

CComObjectRootEx Class

CComObjectRootEx::InternalRelease

InterlockedIncrement