System.Win.ObjComAuto.TObjectDispatch.Invoke
Delphi
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer; Flags: Word; var Params; VarResult: Pointer; ExcepInfo: Pointer; ArgErr: Pointer): HRESULT; virtual; stdcall;
C++
virtual HRESULT __stdcall Invoke(int DispID, const GUID &IID, int LocaleID, System::Word Flags, void *Params, void * VarResult, void * ExcepInfo, void * ArgErr);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.ObjComAuto.pas System.Win.ObjComAuto.hpp |
System.Win.ObjComAuto | TObjectDispatch |
Description
Invokes a method or a property exposed by the COM object through IDispatch.
Invoke executes a call to a method or property exposed by the underlying COM object (late-bound call).
The dispatch identifier (dispid) of the target method or property required by this method can be obtained with the GetIDsOfNames method.