I need to open a file using ShellExec but I want it to open the new process as modal, ie I do not want it to return until the shelled app is closed. Is this possible and if so how ?

I have tried to set the parent parameter but that only recieves error messages, the function still returns right away.
Posted on 2003-09-09 21:35:58 by donkey
Can't you use ShellExecuteEx with WaitForSingleObject?
Posted on 2003-09-10 00:53:46 by Morris
Thanks Morris,

That takes care of the problem nicely :alright:
Posted on 2003-09-10 01:31:59 by donkey