Windows service - monitor application communication

V

Vitling

I want do display statistics from, and configure a windows service app
using a gui-application. How can I transfer data between the two
programs? OnCustomCommand is the only thing I have come up with, and
that only solves passing a 128 to 256 int value from the application
to the service. Please help me find suitable solutions!
 
N

nevin

You could still use the OnCustomCommand to initiate the service to do
something like dumping the stats to a file somewhere and then reading and
parsing and displaying those stats from your other app.
You could use remoting if you wanted to do it real time or just regular
sockets I suppose.

Nev
 
J

James Black

Vitling said:
I want do display statistics from, and configure a windows service app
using a gui-application. How can I transfer data between the two
programs? OnCustomCommand is the only thing I have come up with, and
that only solves passing a 128 to 256 int value from the application
to the service. Please help me find suitable solutions!

Since I just need to pass a single character I just set a value in
the registry, as my program wakes up every 200ms to do something anyway,
so it just checks the registry.

You could also check for a specific file and pass the data that way.
 

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