-
I'm looking at writing an application that will monitor various other machines. I need it to check to see if a specific application is running on one of the remote machines.
Is there an API that will allow me to do this? I know I could use something like "FindWindow" to determine if it is running on the same machine as the monitoring program - but is there any way of testing a remote machine?
Thanks...
-
I think you can use FindWindow to trigger an alarm or
something when the renegade program shows up. :p
Raise an audible alarm or send an alert message through
TCP/IP to your command server. That should be rather fun, I would say.
BTW, the FindWindow API.
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
-
Thanks for the reply, but I don't know how to get the "FindWindow" api to work on the remote machine.
I have started writing an ActiveX Exe that uses various API calls to test if the EXE is running - my goal then is to run this program from the local machine.
I'm not sure if this is the way to go - but it's gotta be worth a try.
(I just have to work out how to register the activex exe on the remote machine now...)
-
I don't think it's all that simple to do the scanning from
your local PC. Your best bet is to write some kind of
client/server app.
Have a command server running on your local pc and your
baby client programs on the pc's you would like to monitor.
Your client programs should talk to your server on TCP/IP
and of course also sent the alert to your command server
whenever necessary.
-
Thanks
I think youre right, thats the way to go with it. I did get the program to work, however the only application that it could see running on the remote machine was itself (not entirely useful).