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 18:59:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Is there a way to determine an app is running ?
Miscellaneous
Thread ID:
00466291
Message ID:
00466291
Views:
39
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

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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Next
Reply
Map
View

Click here to load this message in the networking platform