I want to create a communication between a windows service and a desktop application on Windows 7. I read that named pipes are one way for communication between two processes. Can i use them for my purpose?
Asked
Active
Viewed 1.8k times
8
-
5That depends, what is your purpose? What does the app do? The most common route is a WCF service over HTTP, does that sound suitable? – Kieren Johnstone Oct 17 '11 at 09:00
3 Answers
5
sure you can use named pipes, WCF many other IPC methods.
for named pipe example among stack overflow questions, see here as well for some backgound:
Inter process communication using Windows service
also check this one: GUI and windows service communication

Community
- 1
- 1

Davide Piras
- 43,984
- 10
- 98
- 147
-
The first link didn't really help much, but the second link was pretty informative. – Fütemire Jan 15 '17 at 19:18
3
As indicated above, there are lots of options available. Just be aware that if you go the TCP/IP route (e.g. WCF), the user will have to have a valid network connection (a loopback adapter will work) otherwise your client and service won't be able to communicate.

Graymatter
- 6,529
- 2
- 30
- 50