From RAD Studio API Documentation
Jump to: navigation, search


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


Type Visibility Source Unit Parent
function public System.pas System IDispatch


Invoke performs a call to a late-binded property or method.

Invoke actually calls a method or a property exposed by the COM object through IDispatch. Invoke requires a previously obtained dispatch identifier. The identifier uniquely identifies a method, a property, and a list of parameters to be passed to the called method and exception information. The dispatch identifier of a method or property (also known as dispid) can be obtained by a calling the GetIDsOfNames method.

See Also