简体   繁体   中英

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?

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

As indicated above, there are lots of options available. Just be aware that if you go the TCP/IP route (eg 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.

WCF一起使用 ,这是一个很好的解决方案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM