简体   繁体   中英

c# Best way to start application from Windows Service

I have Windows service started from Local Service. This service can be installed on terminal windows server with multiple users. As I understand service started in "Session 0" and can not interact with users in easy way. What is the best way start another exe file for each user from this service? I think this another application can not be started from service directly. I can add via service add application in registry startup key and this application will start on next logon, but I not sure that it is the best solution

You have to create a separate app with a GUI and way of communication between them. There are many ways for this and each of them has benefits and drawbacks. So it depends stronly on your needs.

Just to mention a few:

  • Sockets

  • Named Pipes

...

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