Re: How to connect to a service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello!
You wrote on Fri, 11 Jul 2008 15:58:07 +0200:

PS> The only what I have found yet is the ServiceController. With this
PS> class I can connect to service an can get some information about it. i
PS> can also shut down or start a service or can send a custom signal to
PS> it, but I couldn't sent an object to the service.
PS> Is there a way to do this?

There exists a number of ways to communicate between the processes:
* sockets
* named pipes
* memory-mapped files (shared memory)
* mailslots
* etc.

You can check MsgConnect ( http://www.eldos.com/msgconnect/ ) it was designed for the tasks similar to yours and it lets you build flexible communication via MMF or sockets.

With best regards,
Eugene Mayevski
http://mayevski.blogspot.com/

.