Results 1 to 5 of 5

Thread: Detecting program on remote machine

  1. #1

    Thread Starter
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394

    Question

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

  2. #2
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122
    I think you can use FindWindow to trigger an alarm or
    something when the renegade program shows up.
    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

    penyou!

    "The code bytes.."

  3. #3

    Thread Starter
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    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...)


  4. #4
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122
    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.

    penyou!

    "The code bytes.."

  5. #5

    Thread Starter
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    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).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width