I think that the mangling is caused by the __stdcall directive.