Create and Embed an Application Manifest (UAC)
http://msdn.microsoft.com/en-us/library/bb756929.aspx
可以在VS2008中设置当执行exe时弹出提升管理员权限对话框:
xx Property->Configuration Properties->Linker->Manifest File,把UAC Excecution Level 项设置为 requireAdministrator 即可。
更多请参考:http://subject.it168.com/article/articleview.aspx?id=734216
Value |
Description |
Comment |
---|---|---|
asInvoker |
The application runs with the same access token as the parent process. |
Recommended for standard user applications. Do refractoring with internal elevation points, as per the guidance provided earlier in this document. |
highestAvailable |
The application runs with the highest privileges the current user can obtain. |
Recommended for mixed-mode applications. Plan to refractor the application in a future release. |
requireAdministrator |
The application runs only for administrators and requires that the application be launched with the full access token of an administrator. |
Recommended for administrator only applications. Internal elevation points are not needed. The application is already running elevated. |
最新文章
- jQuery源码解读-事件分析
- hdu1162(最小生成树 prim or kruscal)
- 【iCore3 双核心板_FPGA】实验十五:基于USART的ARM与FPGA通信实验
- Material Design入门(三)
- 如何自学java迅速成为java高手
- Django-RQ首页、文档和下载 - Django 和 RQ 集成 - 开源中国社区
- flex布局的使用,纪念第一次开发手机网站
- 剑指offer 25 二叉树中和为某一值的路径
- linux下的二进制文件的编辑和查看
- Docker容器监控(十)--技术流ken
- 获取mp3文件的采样率
- 【React】入门实例
- Django--ORM(模型层)--多表(重重点)
- java面试技巧
- java Concurrent包学习笔记(七):ConcurrentHashMap
- 不越狱安装破解软件,iResign重签名方法
- Python Django 前后端数据交互 之 前端向后端发送数据
- Django视图之URLconfs
- hadoop-2.7.1:Error: Cannot find configuration directory: /etc/hadoop
- Linux的磁盘分区(一)