_Added in 1.9.2_ */dll [-u] <name.dll> <procname> [data]* This allows you to call routines in a [[DLL]] designed to work with AdiIRC. _See also [[$dll]], [[$dllcall]], [[Scripting DLL|DLL Support]]._ _Only 64 bit DLL's can be loaded on 64 bit windows (even with the 32 bit AdiIRC), on 32 bit windows only 32 bit DLL's and even some mIRC DLL's can be loaded._ _ *Prototype*
#include 
int procName(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause);
*Switches* table(ktable). |*Switch*|*Description*| | -u | Unloads the [[DLL]] instead of loading. | *Parameters* table(ktable). |*Parameter*|*Description*| | <name.dll> | Path/Filename to the [[DLL]]. | | <procname> | procName to call. | | [data] | Data to pass to procName() function. | *Example*
/*
  gcc -c -O3 reverse.c
  gcc -shared --export-all-symbols -o reverse.dll -O3 reverse.o

  reverse.c:

  #include 
  #include 
  
  int __attribute__((stdcall))
  reverse(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
  {
      char *l = *data ? data + strlen(data) - 1 : data;
      char *p = parms;
      while ((*p++ = *l--));
      strcpy(data, "/echo -s ");
      strcat(data+8, parms);
      return 2;
  }
*/
 
; /reverse This is an example!
; !elpmaxe na si sihT
alias reverse {
  /dll "reverse.dll" reverse $1-
}