System.Win.ComObj.InterfaceDisconnect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InterfaceDisconnect(const Source: IUnknown; const IID: TIID;
var Connection: Longint);

C++

extern DELPHI_PACKAGE void __fastcall InterfaceDisconnect(const System::_di_IInterface Source, const GUID &IID, int &Connection);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj System.Win.ComObj

Description

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.

See Also