Information générale
Catégorie:
Fonctions Windows API
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement