CComObjectRootEx::InternalAddRef
Increments the reference count of a nonaggregated object by 1.
Syntax
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
CComObjectRootEx Class
CComObjectRootEx::InternalRelease
InterlockedIncrement