Detecting running application

  • Thread starter Thread starter tc
  • Start date Start date
T

tc

Hi, does anyone know a way of working out what is running on another PC?

Application on client needs to check that certain other system components
are running on a server.

Any ideas greatfully received.

Thanks.
 
tc said:
Hi, does anyone know a way of working out what is running on another PC?

Application on client needs to check that certain other system components
are running on a server.

Any ideas greatfully received.

Thanks.
If you have a client server application ask the server part for the
information. Accessing process information on other systems normally
require administrative permissions. And that's something an application
should not need.

Regards,

Peter
 
tc said:
Hi, does anyone know a way of working out what is running on another PC?

Application on client needs to check that certain other system components
are running on a server.

Any ideas greatfully received.

If the component is a service running on the target computer, then you can
use System.ServiceProcess.ServiceController.GetServices(machineName) to get
the list of services on that computer, then use Status property to see if
the service is running, stopped, etc. The user need to have proper
permissions for this to work.

If it's not a service, then you have to use something like a client/server
mechanism using Winsock, or Pipes.
 
Back
Top