/
dll <filename> <procname> [data]
$
dll(filename, procname, data)
$dllcall(filename, alias, procname, data)
The above open a
DLL, call the procname routine, and send it the specified data. The only difference is that $
dll() can return a value, like all other identifiers.
$dllcall() is multi-threaded so it will not halt the script and will call the specified alias once the call returns.
Technical notes
This section contains technical information for programmers who want to create DLLs for use with mIRC.
The routine in the
DLL being called must be of the form:
int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
mWnd is the
handle to the main mIRC window.
aWnd is the
handle of the window in which the command is being issued, this might not be the currently active window if the command is being called by a remote script.
data is the information that you wish to send to the
DLL. On return, the
DLL can fill this variable with the command it wants mIRC to perform if any.
parms is filled by the
DLL on return with parameters that it wants mIRC to use when performing the command that it returns in the data variable.
Note: The data and parms variables can each hold 900 chars maximum.