return cast(int) msg.wParam in myWinMain; WPARAM is 64bit in Win64 but myWinMain requires an int return value