让 C++builder 或 delphi 程序 获取管理员权限

来源:互联网 发布:水表读卡器软件 编辑:程序博客网 时间:2024/05/22 06:10

参考:

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Customizing_the_Windows_Application_Manifest_File#Creating_a_Custom_Application_Manifest_File


实际操作方法如下:

先搜索 default_app.manifest   ,xe7在这里

C:\Program Files (x86)\Embarcadero\Studio\15.0\bin\default_app.manifest

复制到你想要的文件夹

修改其中 权限项目.

在自己的项目文件中设置custom manifest.

具体位置在这:

project->options->application->Runtime themes->use custom manifest->上述文件位置.

重新编译即可.

阅读全文
0 0
原创粉丝点击