VS2008前的版本需要添加一个manifest文件,内容如下:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="mulitray.exe.manifest"
type="win32"
/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
保存为UAC.manifest,在rc文件中添加以下内容
1 24 "UAC.manifest"
(VS2005可能会报错,在rc上清除以上代码,使用项目属性添加的方法项目属性->manifest tool->input and output)
VS2008中就相对简单的多了,只需要动手选择一下就行,项目属性->配置属性->连接器->manifest file : 将UAC Execution Level勾选为requireAdministrator
分享到:
相关推荐
VB用两种方法实现win7风格的窗体界面,一种是使用manifest 文件实现,另一种是使用Res资源文件实现,XP风格的manifest文件和win7风格的manifest文件不同,请不要混用,另外请使用5.0版的Microsoft.Windows.Common-...
PB的旧版本的控件都是方方正正的样式,比较难看,使用manifest文件可以使这些标准控件编程windows样式
解决VC6无法指定manifest文件,在启动MSVCR90前没有CreateActCtxA和ActivateActCtx导致的R6034运行时错误
Java 读写MANIFEST.MF文件中的属性,采用maven打包MANIFEST.MF配置项,通过io流读取配置项
易语言UAC添加器源码,UAC添加器,按钮1_被左键按下,按钮2_被左键按下,取文件格式,更新Manifest清单,BeginUpdateResource,UpdateResource,EndUpdateResource,FindResource
Manifest.xml文件的作用和简单使用
原因:未找到关联jar文件里面的Class,解决方法: 1.把这些乱七八糟的jar文件全部设置到操作系统里面的classpath环境变量中 2.修改运行jar里面的MANIFEST.MF,把关联jar文件设置在里面。 我提供的是一个生成MANIFEST...
Manifest_UFSFiles_Android.txt
steam-appmanifest, 在 ~/.steam/steam/SteamApps 中,生成 appmanifest_APPID.acf 文件 Steam AppManifest生成器这是一个简短的python 脚本,可以让 Steam 下载到下载非Linux应用程序中。注:Steam 不会运行没有...
manifest导致XP SP2崩溃的补丁mt.exe. 将此文件覆盖到下面两个文件 C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\mt.exe C:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe
manifest
android manifest 解密jar
VC使用xpstyle.manifest,能让VC应用程序变为XP风格。使用方法见压缩包。
cxf-manifest cxf-manifest
jquery-manifest插件
MANIFEST
android Manifest.xml详解 介绍了很多标签和属性
VS2005 SDKV2.0版本导入清单文件.manifest ,提升为管理员权限测试工程
android应用程序开发manifest.xml详解
用来导入manifest信息的工具