Condividi tramite


CComCachedTearOffObject::QueryInterface

Retrieves a pointer to the requested interface.

STDMETHOD(QueryInterface)( 
   REFIID iid , 
   void** ppvObject  
);

Parameters

  • iid
    [in] The GUID of the interface being requested.

  • ppvObject
    [out] A pointer to the interface pointer identified by iid, or NULL if the interface is not found.

Return Value

A standard HRESULT value.

Remarks

If the requested interface is IUnknown, returns a pointer to the CComCachedTearOffObject's own IUnknown and increments the reference count. Otherwise, queries for the interface on your tear-off class using the InternalQueryInterface method inherited from CComObjectRootEx.

Requirements

Header: atlcom.h

See Also

Reference

CComCachedTearOffObject Class

CComCachedTearOffObject::AddRef

CComCachedTearOffObject::Release