ClassFactory::AddRef Method

 

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 ClassFactory::AddRef Method.

Increments the reference count for the current ClassFactory object.

STDMETHOD_(  
   ULONG,  
   AddRef  
)();  

S_OK if successful; otherwise, an HRESULT that describes the failure.

Header: module.h

Namespace: Microsoft::WRL

ClassFactory Class

Show: