EASTFIST

Home Downloads Tutorials Portfolio Menu Item Z
Content goes here

May 17, 2026

Windows Executable Manifest Template To Control High DPI Scaling

 <?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">
 <application>
  <windowsSettings>
   <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
   <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
  </windowsSettings>
 </application>
</assembly>

Because Windows does some wonky auto-scaling for high resolution displays, sometimes you want to control how your app draws everything. To do this, you must embed a simple xml file into your Windows executable upon compiling. You're telling Windows not to apply any auto-scaling and that you want to do it all by yourself.

Copyright © 2009-2026 Original content by Chongchen Saelee unless otherwise noted.