Without knowing its window title.
To my understanding if you can't get a Hwnd you can't determine if an app is finished or not. I hope to be mistaken of course :)
If this is true how could I get a Hwnd to an app I launch with either CreateProcess or ShellExecute (preferably ShellExecute).
What I basically want to do is :
Launch the app
Wait for it to finish
Return
I tried :
CreateProcess
WaitForSingleObject
However if say already there are 2 instances of Word, launching Word with this just returns immediately. Also GetExitCodeProcess shows only one instance as STILL_ACTIVE.
Any clues appreciated. TIA
Cetin