General information
Category:
Windows API functions
Title:
Detecting launched application after ShellExecute
All,
I am having a hard time finding out what is the right API function that will detect if the application ('WinZip') I have launched using 'ShellExecute' is still running or not.
The returned handle by 'ShellExecute' is that of its parent window, not the instance of the launched application. I doubt if GetWindowText could do the job since its possible to have multiple instances of the same application('WinZip').
I need this 'Function' to prevent my other codes from executing while the launched application is still running.
Another thing, if there is, indeed, a function that will return the window handle for the launched application, could GetWindowModuleFilename return the right application ?
Any informative solution to this query is much appreciated.
Thanks,
Darwin.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only