Einzelnen Beitrag anzeigen

Benutzerbild von Pseudemys Nelsoni
Pseudemys Nelsoni

Registriert seit: 24. Dez 2002
Ort: Hamburg-Harburg
3.551 Beiträge
 
#1

Wert über dll aus registry bekommen

  Alt 9. Dez 2003, 16:31
Moin,

ich möchte aus der registry einen string holen, da mirc das nicht kann (nur über $dll), möcht ich das über eine dll machen, aus der mirc-hilfe habe ich folgendes:

Zitat:
/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.
verstehen tu ichs nicht ganz, wie geb ich denn das ergebnis aus meiner dll an mirc? bzw wie müssen die proceduren/functionen in der dll denn aussehen?
Mario
MSN: cyanide@ccode.de
  Mit Zitat antworten Zitat