System.Win.ComObj.TConnectionPoint.Advise
Delphi
function Advise(const unkSink: IUnknown; out dwCookie: Longint): HResult; stdcall;
C++
HRESULT __stdcall Advise(const System::_di_IInterface unkSink, /* out */ int &dwCookie);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TConnectionPoint |
Description
This method tries to establish a connection to a COM Object. The Advise method tries to establish a connection to a COM Object, if possible. It takes two parameters, an event sink, and a cookie to represent a unique ID for the connection.