AUTOInvoke (W*32, W*64)

AUTO Function: Passes the name or identifier of an object's method and an argument list data structure and invokes the method with the passed arguments.

Module: USE IFAUTO

Syntax

result = AUTOInvoke (idispatch, id, invoke_args)

idispatch
The object's IDispatch interface pointer. Must be of type INTEGER(4).


id
The argument's name of type CHARACTER*(*), or its member ID of type INTEGER(4).


invoke_args
The argument list data structure. Must be of type INTEGER(4).

Results

Returns an HRESULT describing the status of the operation. Must be of type INTEGER(4).

Example

See the example in COMInitialize.