Windows service control application

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
 
D

Davita

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 :)
 
D

Davita

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

Chris Dunaway

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top