I gave it a shot and made a simple example DLL.
It exports a function which calls CreateThread (the callback function is in the DLL, too, of course), which I can call in my script. Seems to work well.
Thanks, everyone!
This post was edited on 12-25-2008 at 12:23 AM by Danny22.