Meh, and I've not been able to find it. Yours looks way nicer than mine :-)
It would be nice if there was a way to make that stuff platform independet, but I don't think this will be possible soon .-(
DLL-Calls often are a bit of a hassle to implement. Especially when you don't have access to header files. The upside is, that I'm using a dll that is sitting in every windows version since Windows 2000. So th solution is quite portable inside the windows line.
kruemi