Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to determine an app is running ?
Message
From
20/01/2001 19:34:30
 
 
To
20/01/2001 18:59:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00466291
Message ID:
00466294
Views:
12
>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
>

See my reply Thread #463296 Message #464551 on why this won't work.


>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform