foreign export stdcall on user-defined type and function