Function Reference

DllOpen

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.
When finished working with a dll, call the DllClose function to close it. Autoit normally closes all files upon termination, but explicitly calling DllClose is still a good idea.

 

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)