Windows service control application

  • Thread starter Thread starter Cato
  • Start date Start date
C

Cato

good morning, i'm working on a file syste watcher application that
runs as "windows service".

i have a problem...

how can i create a client application that "monitors" the events in my
service?

i need to interact with the service from a client application, also
for other tasks, such as query for variables status.


which is the best practice for this?

thank you
 
Hello Cato
Why don't you merge client and service applications? Service applications
supports GUI if you configure it so. Right click on the service, properties,
Log On tab, check Allow service to interact with desktop. This way, your
code will be smaller and easyer.

Good luck :)
 
that's just a pain for nothing. this is not a distributed application in
nature, so it doesn't need WCF, Remoting, Webservices or other overhead. It
will just make things more complex. So I'd not recommend this if there is no
need that the service will have more than one client, or service should
communicate to the clients from network/internet.
 
that's just a pain for nothing. this is not a distributed application in
nature, so it doesn't need WCF, Remoting, Webservices or other overhead. It
will just make things more complex. So I'd not recommend this if there is no
need that the service will have more than one client, or service should
communicate to the clients from network/internet.

The problem is that Windows Vista does not allow services to interact
with the desktop so any solution that uses that option will not work
on Windows Vista.

Chris
 
Back
Top