Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 1.21 KB

File metadata and controls

67 lines (54 loc) · 1.21 KB
title _com_ptr_t::AddRef | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
devlang-cpp
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
_com_ptr_t::AddRef
_com_ptr_t.AddRef
AddRef
dev_langs
C++
helpviewer_keywords
AddRef method [C++], interface pointers
ms.assetid c104dac3-aad3-40bb-a298-75c6cd0e63a2
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw
translationtype Human Translation
ms.sourcegitcommit 3168772cbb7e8127523bc2fc2da5cc9b4f59beb8
ms.openlocfilehash 6512713920f333dda19793b551ede77224d8682c

_com_ptr_t::AddRef

Microsoft Specific

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

Syntax

  
void AddRef( );  
  

Remarks

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

END Microsoft Specific

See Also

_com_ptr_t Class