Support for connectable objects requires support for four interfaces:
- IConnectionPointContainer on the connectable object
- IConnectionPoint on the connection point object
- IEnumConnectionPoints on an enumerator object
- IEnumConnections on an enumerator object
The latter two are defined as standard enumerators for the types IConnectionPoint * and CONNECTDATA.
Additionally, the connectable object can optionally support IProvideClassInfo and IProvideClassInfo2 to provide enough information to a client so that the client can provide support for the outgoing interface at run time.
Finally, the client must provide a sink object that implements the outgoing interface, which is a custom COM interface defined by the connectable object.
For more information, see the following topics:
Related topics
Architecture of Connectable Objects
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
