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

后端 未结 4 1664
孤街浪徒
孤街浪徒 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:10

    For number 1, in order to run your application with administrator permissions, then it is impossible to run it without the UAC dialog poping up, or you having the administrator password

    For number 2, this is an interesting topic, there is a good article here, with examples & source codes: http://www.codeproject.com/KB/threads/process_communication.aspx the topic is .net remoting. im sure that is the best way to communicate between the different apps.

提交回复
热议问题