Sign in Join
FPDoc Onlineexperiment

IVCLComObject.Invoke function

Member of IVCLComObjectIn unit Classes

The IDispatch:Invoke call for automation servers.

Declaration

pascal
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer; 
 Flags: Word; var Params; VarResult: Pointer; 
 ExcepInfo: Pointer; ArgErr: Pointer): HRESULT

Description

Invoke must invoke the method designated by DispID. IID can be ignored. LocaleID is used by the caller to indicate the locale it is using. The Flags argument describes the context in which Invoke is called: a method, or property getter/setter. The Params argument contains the parameters to the call. The result should be in VarResult. On error, ExcepInfo and ArgError should be filled.

The function should return 0 (S_OK) if all went well.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.