You don't, ShellExecute doesn't have the functionality you want. You could use ShellExecuteEx asking for the process handle return and polling until that process terminates if you wanted.
Hey guys, I am running up against a brick wall, and I desperately need your advice.<BR><BR>Background:<BR>I am the unfortunate maintainer of an POS app written in VB6 ...