Threw this together. I wanted to be able to hook into the GUI functionality and I figured TGameCtrl_r was the place it was taking place.
So, I needed a lib/header files, and instead of making them manually I made a generator. Given the fact that the DLL is likely to change on different clients I figured I'd release the generator itself.
Everything in the JAR is included, but if you want to build from source make sure that JNA and the platforms JAR that comes with it are both on the build path. (The only JNA I used was to use Windows' built in name de-mangler).
Needless to say this only works on Windows.
To use, just drop the batch file and the jar in your game directory and run the batch file.
Let me know if there are bugs. Generated files include TGameCtrl_r.lib, TGameCtrl_r.exp, TGameCtrl_r.def, and TGameCtrl_r.hpp.
If you are using a version other than MSVC 2012 (11.0), you'll need to edit the batch file to change the install directory and point to vcvarsall.bat.
Yes, I know the source is hairy. I wanted to finish this so I could drink some wine and socialize. This is the product of about 3 hours of work.
Binaries (place in game directory and run batch file):
Source: