Skip to main content

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​

InputTypeRequiredDefaultWhat it is
LibraryStringNoLibrary name or full path of the DLL (or use session).
FunctionStringYesExported function name.
ArgumentsListNoArguments 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 typeStringNointType of the return value.
SessionStringNoSession from Open DLL; used instead of library.
Calling conventionStringNocHow the function expects its arguments; matters only for 32-bit DLLs (Win32 API functions use stdcall).

Outputs​

OutputTypeWhat it is
resultAnyReturn value (number or text; empty for void).