IUnknown::AddRef

[This is preliminary documentation and subject to change.]

Increments the reference count for the calling interface on an object. It should be called for every new copy of a pointer to an interface on a given object.

This method is fully documented in the COM documentation in the Microsoft® Platform SDK and is only partially documented here for quick reference.

ULONG AddRef(void);
 

Parameters

None.

Return Values

Returns an integer from 1 to n, the value of the new reference count. This information is meant to be used for diagnostic/testing purposes only. In certain situations the value might be unstable.