Changed WinMain signature, added updatewindow