Communication between windows service and desktop app

后端 未结 3 1832
广开言路
广开言路 2021-01-05 04:33

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 processe

相关标签:
3条回答
  • 2021-01-05 04:51

    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

    0 讨论(0)
  • 2021-01-05 04:56

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

    0 讨论(0)
  • 2021-01-05 05:00

    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.

    0 讨论(0)
提交回复
热议问题