Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if an application is already running ?
Message
From
02/04/2004 03:45:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/04/2004 08:48:01
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00891439
Message ID:
00891693
Views:
22
>>Hi all,
>>
>>I have to check if an application is already running, so I cannot allow the user to fire up other instances...
>>
>>However, the running application may have its main form hided and an icon in the system tray. In this case, the API function FindWindow() does not work :(
>>
>>I think I will have to work with some sort of "process" functions, but I am lost here... Could you please shed some light ?
>>
>>Thanks,
>
>Also see Download ID: 19482
>
>"Remotely exit VFP applications across the network January 28, 2004
>Monitor and remotely terminate running application from across the network. Great for those times you need to force users out of applications they have left running. Also, the administrator can check for dead applications or those that are reporting they are in a critical section of the program, like long updates to reporting."
>
>I made a version of it for our use a few months ago - made it tighter and snazzier - and sent a copy to Greg, but he never commented or updated the download. It really works great and mine has an XP look to it. With his permission I would be happy to send you the one I modified. Or you can just use his version.

Jay,
As per your comment on _VFP.HWND there is MainHwnd() in foxtools.fll for older versions.
Set Library To Home()+'foxtools.fll'
? MainHwnd()
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
Previous
Reply
Map
View

Click here to load this message in the networking platform