日期:2014-05-17  浏览次数:20900 次

vista下解决运行程序的级别

xxx.exe.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="xxx"
?type="win32"
/>
<description>
?xxx.exe
</description>
<dependency>
?<dependentAssembly>
??<assemblyIdentity
???type="win32"
???name="Microsoft.Windows.Common-Controls"
???version="6.0.0.0"
???processorArchitecture="x86"
???publicKeyToken="6595b64144ccf1df"
???language="*"
??/>
?</dependentAssembly>
</dependency>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
?<security>
??<requestedPrivileges>
???<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
??</requestedPrivileges>
?</security>
</trustInfo>
</assembly>