共用方式為


CConnectionPoint::QuerySinkInterface

Retrieves a pointer to the requested sink interface.

virtual HRESULT QuerySinkInterface(
   LPUNKNOWN pUnkSink,
   void** ppInterface
);

Parameters

  • pUnkSink
    The identifier of the sink interface being requested.

  • ppInterface
    A pointer to the interface pointer identified by pUnkSink. If the object does not support this interface, *ppInterface is set to NULL.

Return Value

A standard HRESULT value.

Requirements

Header: afxdisp.h

See Also

Reference

CConnectionPoint Class

Hierarchy Chart

Other Resources

CConnectionPoint Members