External$

System function.

The External$ function calls a Windows DLL and returns a string. Not available in WinTask Lite.

Syntax

var$=External$(<DLL_name$>,<function_name$>[, <param1>[,<param2>, ...]])

Parameter

<DLL_name$>, string, name of the Windows DLL.

<function_name$>, string, name of the DLL function.

<param1>, <param2>: optional parameters, type integer or unsigned or string.

Return value

var, return value, string type.

Remarks

In order to use External$, the calling convention for the exported function must be _stdcall and the function must return char*. External is more powerful as it does not have those limitations.

Example code

See External

See a full script example at How to call API Windows functions