其他分享
首页 > 其他分享> > 给exe加dpi相关清单命令

给exe加dpi相关清单命令

作者:互联网

b清单加给a程序:

mt.exe -nologo -manifest "b.manifest" -outputresource:"a.exe;1"

a程序提取出2清单:

mt.exe -inputresource:a.exe;#1 -out:2.manifest

下面为dpi相关清单.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <asmv3:application>
    <asmv3:windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
    </asmv3:windowsSettings>
  </asmv3:application>
</assembly>

标签:exe,程序,manifest,mt,清单,dpi
来源: https://blog.csdn.net/fqbqrr/article/details/121494326