Skip to content

Latest commit

 

History

History
71 lines (62 loc) · 1.58 KB

com-ptr-t-queryinterface.md

File metadata and controls

71 lines (62 loc) · 1.58 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager translation.priority.ht
_com_ptr_t::QueryInterface | Microsoft Docs
11/01/2016
visual-studio-dev14
devlang-cpp
language-reference
_com_ptr_t::QueryInterface
_com_ptr_t.QueryInterface
C++
QueryInterface method
d03292f1-6b02-40db-9756-8b0837a97319
6
mikeblome
mblome
ghogen
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

_com_ptr_t::QueryInterface

Microsoft Specific

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

Syntax

  
      template<typename _InterfaceType> HRESULT QueryInterface (  
   const IID& iid,  
   _InterfaceType*& p   
) throw ( );  
template<typename _InterfaceType> HRESULT QueryInterface (  
   const IID& iid,  
   _InterfaceType** p  
) throw( );  

Parameters

iid
IID of an interface pointer.

p
Raw interface pointer.

Remarks

Calls IUnknown::QueryInterface on the encapsulated interface pointer with the specified IID and returns the resulting raw interface pointer in p. This routine returns the HRESULT to indicate success or failure.

END Microsoft Specific

See Also

_com_ptr_t Class