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.