Serial Framework C++ Edition

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE AddRef ( )
overridevirtual

Increments the reference count for an interface pointer to a COM object. You should call this method whenever you make a copy of an interface pointer.

Returns
The method returns the new reference count. This value is intended to be used only for test purposes.