Windows service

N

Nikolay.Kachanov

Hi!
I am writing a windows service application. It must be able to return a
string value when asked by external program.
I've found only ServiceController.ExecuteCommand(int), but does not
return any value.
Is it possible to interact with service in that way? Maybe networking?
But it is not a good solution from my point of view. Any variants?
 
H

Henning Krause [MVP - Exchange]

Hello,

you'll have to use some sort of inter-process communication like Remoting,
shared-memory, named pipes or WebServices.

Best regards,
Henning Krause
 
G

Guest

You could have a TcpListener that listens on a known port and accepts
TcpClient objects via AcceptTcpClient and send the data back that way. Need a
worker thread, of course.
 

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