procedure InterfaceDisconnect(const Source: IUnknown; const IID: TIID; var Connection: Longint);
extern PACKAGE void __fastcall InterfaceDisconnect(const System::_di_IInterface Source, const GUID &IID, int &Connection);
Disconnects an IConnectionPoint interface connection that was previously made by the InterfaceConnect procedure.
Call InterfaceDisconnect from a client application to tell the server to stop calling its sink interface. InterfaceDisconnect disconnects an IConnectionPoint interface connection that was previously made by the InterfaceConnect procedure. These procedures are wrappers for the COM event-handling mechanism, which is based on the IConnectionPointContainer and IConnectionPoint interfaces.
Source is an IUnknown interface for the server object that defines and calls the outgoing interface.
IID is the GUID of the outgoing interface.
Connection is the token that represents the connection, which was returned by the InterfaceConnect procedure.
Note: A demo containing this procedure resides in Demos/ActiveX directory.