>>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