RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComObj.InterfaceDisconnect Function

Disconnects an IConnectionPoint interface connection that was previously made by the InterfaceConnect procedure.

Pascal
procedure InterfaceDisconnect(const Source: IUnknown; const IID: TIID; var Connection: Longint);
C++
InterfaceDisconnect(const IUnknown Source, const TIID IID, Longint Connection);

ComObj

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!