Connection Points

The connection point class is an implementation of the IConnectionPoint interface. Listing 6.1 shows the definition of the IConnectionPoint interface.

Code Listing 6.1. Definition of the IConnectionPoint Interface
interface IConnectionPoint : IUnknown
{
  HRESULT GetConnectionInterface([out] IID * piid);
  HRESULT GetConnectionPointContainer(
    [out] IConnectionPointContainer ** ppCPC)
  HRESULT Advise([in] IUnknown * pUnkSink,
    [out] DWORD * pdwCookie);
  HRESULT Unadvise([in] DWORD dwCookie);
  HRESULT EnumConnections(
    [out] IEnumConnections ** ppEnum);
}

The IConnectionPoint::GetConnectionInterface() method returns the interface identifier (IID) of the event sink interface. The IConnectionPoint:: GetConnectionPointContainer() method ...

Get COM+ Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.