C#.NET:获取管理员权限?
C#.NET 应用程序是否可以请求 Windows 7 PC 上的管理权限?
我希望能够通过 Click Once 部署应用程序,并让用户使用它来执行管理任务(在本例中,它正在为主应用程序写入注册表项)。
Is it possible in a C#.NET application to request administrative rights on a Windows 7 PC?
I want to be able to deploy the application via Click Once and have users use it to perform administrative tasks (in this case it is writing registry entries for the main application).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://victorhurdugaci.com/using-uac-with-c-part- 1
http://victorhurdugaci.com/using-uac-with -c-part-2
http://victorhurdugaci.com/ using-uac-with-c-part-3
*自我提升
额外字符,因为它必须是 30
http://victorhurdugaci.com/using-uac-with-c-part-1
http://victorhurdugaci.com/using-uac-with-c-part-2
http://victorhurdugaci.com/using-uac-with-c-part-3
*self promotion
Extra characters because it must be 30
您只需添加清单应用程序文件即可
到您的项目
简单:右键单击项目,添加,新项目,清单文件
并将其更改
为
simply all what you need to do is to add manifest application file
to your project
simple : right click on the project , add , new item , manifest file
and Change the
to