Hi, Rafał.
Thanks for the patch. I think there is at least two issues with it - on Windows only 32-bit modules use decorated names, 64-bit ones do not. We need to do the same. Another issue is that you change to stdcall for all versions, and according to recent SDK at least version 1.7 is using cdecl. I suspect you should switch to stdcall only for 0,1,2 versions (if testing confirms that).