Call (Method)

Applies To:

SharedLibrary object

Description:

Invokes functions in external DLLs.

Syntax:

Expression.Call(sFunctionName As String, sArgumentType As String, [arg1], [arg2], [arg3], [arg4], [arg5], [arg6], [arg7], [arg8])

Expression Required:

An expression that returns a SharedLibrary object

Example:

This example calls the Beep function of the Kernal32.dll for four seconds with 5000Hz:

var oLibrary;
oLibrary = LoadSharedLibrary("kernel32.dll");
oLibrary.Call("Beep", "UI,UI", 5000, 4000);