Opens a dll file for use in DllCall.
DllOpen ( "filename" )
Parameters
filename | Filename of the dll file to open. |
Return Value
Success: | Returns a dll "handle" or use with subsequent dll functions. |
Failure: | Returns -1 if error occurs. |
Remarks
Up to 64 files can be open simultaneously by one AutoIt script.
Related
DllCall, DllClose
Example
$dll = DllOpen("user32.dll")
$result = DllCall($dll, "int", "MessageBox", "hwnd", 0, "str", "Some text", "str", "Some title", "int", 0)
DllClose($dll)