共用方式為


CComObjectRootEx::OuterQueryInterface

Retrieves an indirect pointer to the requested interface.

HRESULT OuterQueryInterface( 
   REFIID iid,
   void** ppvObject  
);

Parameters

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

  • ppvObject
    [out] A pointer to the interface pointer specified in iid, or NULL if the aggregation does not support the interface.

Return Value

One of the standard HRESULT values.

Requirements

Header: atlcom.h

See Also

Reference

CComObjectRootEx Class

CComObjectRootEx::OuterAddRef

CComObjectRootEx::OuterRelease