Call DLL function
Call an exported function, e.g. user32.dll MessageBeep, with typed arguments; returns its value.
Command in the DLL toolkit · id ooa.dll/call · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Library | String | No | Library name or full path of the DLL (or use session). | |
| Function | String | Yes | Exported function name. | |
| Arguments | List | No | Arguments in order: plain values (whole numbers are int, other numbers double, text a Unicode string, true/false bool) or {"type": "int|long|double|bool|string|wstring", "value": ...} to choose the type. | |
| Return type | String | No | int | Type of the return value. |
| Session | String | No | Session from Open DLL; used instead of library. | |
| Calling convention | String | No | c | How the function expects its arguments; matters only for 32-bit DLLs (Win32 API functions use stdcall). |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | Return value (number or text; empty for void). |