How to design autostart application that runs as admin on Windows Vista/7?

后端 未结 4 1696
孤街浪徒
孤街浪徒 2021-01-15 02:28

I have the need for my application to start and stop Windows Services based on certain events. The thing is that this application needs to run as an elevated normal user (In

4条回答
  •  無奈伤痛
    2021-01-15 03:26

    Definitely go with option 2 and specifically use WCF (Windows Communication Foundation) to communicate with the Windows Service using wsHTTPS binding so that you can authenticate that the logged in user is allowed to perform the actions on the WCF Service hosted by the Windows Service.

提交回复
热议问题