Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I assume that the problem here must be whatever secret sauce WINAPI
> pours on the declaration.
A bit of googling says that that expands to _stdcall which is not like
_cdecl. I tried fixing this blindly; might not work, but it can't be
any more broken.
regards, tom lane