_com_ptr_t::AddRef

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _com_ptr_t::AddRef.

Microsoft Specific**

Calls the AddRef member function of IUnknown on the encapsulated interface pointer.

  
void AddRef( );  
  

Calls IUnknown::AddRef on the encapsulated interface pointer, raising an E_POINTER error if the pointer is NULL.

END Microsoft Specific

_com_ptr_t Class

Show: