编译生成小盾牌

编译生成带有小盾牌的可执行文件,需要添加manifest 文件 (xxxx.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.1"
        processorArchitecture="X86"
        name="XXXX"
        type="win32"/>
    <description>XXXX.exe</description> 
    <!-- Identify the application security requirements. -->
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
        <requestedPrivileges>
            <requestedExecutionLevel
                level="requireAdministrator"
                uiAccess="false"/>
            </requestedPrivileges>
        </security>
    </trustInfo>
</assembly>
 
添加在工程项目中
   Configuration Properties--->mainifest tool--->Input and output --->addition manifest file.


 

你可能感兴趣的:(Security,application,encoding,output,X86)