This topic has not yet been rated - Rate this topic

CComPtrBase::QueryInterface

Call this method to return a pointer to a specified interface.

template < 
   class Q 
> HRESULT QueryInterface(Q** pp ) const throw( );
Q

The object type whose interface pointer is required.

pp

Address of output variable that receives the requested interface pointer.

Returns S_OK on success, or E_NOINTERFACE on failure.

This method calls IUnknown::QueryInterface.

In debug builds, an assertion error will occur if pp is not equal to NULL.

Header: atlcomcli.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.