Error in user YAML: (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 11 column 22
---
title: "_com_ptr_t::QueryInterface | Microsoft Docs"
ms.custom: ""
ms.date: "11/04/2016"
ms.reviewer: ""
ms.suite: ""
ms.technology: ["cpp-language"]
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords: []
dev_langs: ["C++"]
helpviewer_keywords: ["[""QueryInterface method [C++]""]"]
ms.assetid: d03292f1-6b02-40db-9756-8b0837a97319
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"]
---
Microsoft Specific
Calls the QueryInterface
member function of IUnknown on the encapsulated interface pointer.
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType*& p
) throw ( );
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType** p
) throw( );
iid
IID of an interface pointer.
p
Raw interface pointer.
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