DECLARE - DLL
From Lianjapedia
Contents
Purpose
Registers a function in an external shared 32-bit dynamic link library (.dll) file (Windows only)
Syntax
DECLARE <functiontype> <functionname> IN <dllname> [AS <aliasname>]
[<paramtype> [@] <paramname> [, ...]]
See Also
CLOSE CLASSLIB, COMPILE, CREATEOBJECT(), DEFINE CLASS, DISPLAY CLASSES, DO, FUNCTION, FUNCTION_EXISTS(), LIST CLASSES, PARAMETERS, PEXIST(), PROCEDURE, RELEASE CLASSLIB, SET CLASSLIB, SET PROCEDURE
Description
The DECLARE - DLL command registers a function in an external shared 32-bit dynamic link library (.dll) file. This command is only available on Windows.
Example
DECLARE INTEGER CreateProcess IN kernel32.dll as CreateProcess; STRING lpApplicationName,; STRING lpCommandLine,; INTEGER lpProcessAttributes,; INTEGER lpThreadAttributes,; INTEGER bInheritHandles,; INTEGER dwCreationFlags,; INTEGER lpEnvironment,; STRING lpCurrentDirectory,; STRING lpStartupInfo,; STRING @ lpProcessInformation