开发者

create a C# application that demand administrator privileges [duplicate]

开发者 https://www.devze.com 2023-04-03 01:33 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Run with administrative permission issue
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Run with administrative permission issue

How to force a WPF application to run in Administrator mode

I'm stuck with this problem from the morning,I will appreciate it if anybody can help me ,I know that this is my first post,but I may become an active user :p . anyway my problem is that I want to create a C# application that demand the administrator right from the user in windows 7,so when the user click on it ,the native window of "allowing this application to be executed in administrator rights"(actuall开发者_StackOverflow社区y I forget what the window says) shows,and a shield icon shows on the icon application indicating to the user that it demands administrator privilege.


See the first section about security of this article on CodeProject...

http://www.codeproject.com/KB/vista/Certified_for_Vista.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消