Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting launched application after ShellExecute
Message
From
28/09/2000 01:36:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Detecting launched application after ShellExecute
Miscellaneous
Thread ID:
00421895
Message ID:
00421895
Views:
48
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
Map
View

Click here to load this message in the networking platform