Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to determine an app is running ?
Message
De
20/01/2001 19:34:30
 
 
À
20/01/2001 18:59:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00466291
Message ID:
00466294
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform