use shellexecute() instead of winexec.
then get the HWND of application you have just run, maybe by getforegroundwindow().
then use setwindowpos(hwnd, HWND_TOPMOST,x,y,cx,cy, SWP_NOMOVE )
~~~~~~~~~~~~
maybe you should check every several seconds to make sure that it is
still the active window