There is a service (written by me) under Windows. There is an application. Using WinAPI, you can stop, start the service from the client application (in general, exchange commands). But I also need to transfer data between the service and the client application. Perhaps there is some kind of ready API?

PS: You can use sockets, but it seems to me that this is not very practical for this task.

  • Yes, there are all sorts of mechanisms for exchanging data between processes. For example named pipe. It looks like sockets, but not sockets at all. In general, in Windows COM is designed for communication between processes - Sergey
  • ControlService () allows up to 128 user messages to use. And yes, named pipe as mentioned above. - Vladimir Martyanov
  • Sergey Yes. In the course, that a lot. Though by e-mail exchange. But I'm interested, maybe there is some kind of API. - Max ZS
  • There is also an exchange through PostMessage. Services can send service messages as one window, and notify all windows. - nick_n_a
  • Without clarifying the data exchange requirements, a reasonable prompt will fail. A list of available technologies is here: msdn.microsoft.com/en-us/library/windows/desktop/… - Chorkov

0