https://bugs.winehq.org/show_bug.cgi?id=44837
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello another time :-)
I noticed after posting my previous comment that the return types for the prototypes taken from https://forum.sysinternals.com discussion are incorrect (swapped).
Use the one from the github code example.
Regards