--- description: "Learn more about: _com_ptr_t::GetInterfacePtr" title: "_com_ptr_t::GetInterfacePtr" ms.date: "11/04/2016" f1_keywords: ["_com_ptr_t::GetInterfacePtr"] helpviewer_keywords: ["GetInterfacePtr method [C++]"] ms.assetid: 55e3e2c7-c939-48b5-a905-4b9cbefeea7e --- # _com_ptr_t::GetInterfacePtr **Microsoft Specific** Returns the encapsulated interface pointer. ## Syntax ``` Interface* GetInterfacePtr( ) const throw( ); Interface*& GetInterfacePtr() throw(); ``` ## Remarks Returns the encapsulated interface pointer, which may be NULL. **END Microsoft Specific** ## See also [_com_ptr_t Class](../cpp/com-ptr-t-class.md)