run winmainproc and onexecute