petko_stankoski
petko_stankoski

Reputation: 10723

Communication between windows service and desktop app

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?

Upvotes: 8

Views: 18301

Answers (3)

Graymatter
Graymatter

Reputation: 6587

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.

Upvotes: 3

Otiel
Otiel

Reputation: 18743

Go with WCF, it's a good solution to start.

Upvotes: 2

Davide Piras
Davide Piras

Reputation: 44605

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

Upvotes: 5

Related Questions