change cdecl to stdcall