title ActivationFactory::AddRef Method | Microsoft Docs ms.custom ms.date 11/04/2016 ms.reviewer ms.suite ms.technology cpp-windows ms.tgt_pltfrm ms.topic reference f1_keywords module/Microsoft::WRL::ActivationFactory::AddRef dev_langs C++ helpviewer_keywords AddRef method ms.assetid dfe96189-ddbe-410a-9f8d-5d8ecc8cc7e6 caps.latest.revision 3 author mikeblome ms.author mblome manager ghogen translation.priority.ht de-de es-es fr-fr it-it ja-jp ko-kr ru-ru zh-cn zh-tw translation.priority.mt cs-cz pl-pl pt-br tr-tr ActivationFactory::AddRef Method Increments the reference count of the current ActivationFactory object. Syntax STDMETHOD_( ULONG, AddRef )(); Return Value S_OK if successful; otherwise, an HRESULT that describes the failure. Requirements Header: module.h Namespace: Microsoft::WRL See Also ActivationFactory Class