Vcl.AxCtrls.TActiveFormControl.Invoke

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

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
Vcl.AxCtrls.pas
Vcl.AxCtrls.hpp
Vcl.AxCtrls TActiveFormControl

Description

Invoke implements the OLE Automation IDispatch Invoke function.

Call Invoke to access the property or method specified by the DispID parameter. The Flags parameter indicates whether the DispID refers to method (DISPATCH_METHOD), a property value that is being read (DISPATCH_PROPERTYGET), or a property value that is being set (DISPATCH_PROPERTYPUT or DISPATCH_PROPERTYPUTREF). The Params and ExcepInfo parameters hold parameters and exception information, respectively, and depend on the property or method identified by the DispID parameter.

Invoke returns S_OK if it is successful. Otherwise, it returns an error code defined by the IDispatch interface.