Skip to content

Instantly share code, notes, and snippets.

@bjornblissing
Last active June 28, 2019 21:27
Show Gist options
  • Save bjornblissing/3155d62ad807d0b29410 to your computer and use it in GitHub Desktop.
Save bjornblissing/3155d62ad807d0b29410 to your computer and use it in GitHub Desktop.
Manifest to tell Windows that the application is DPI aware (needed for Windows 8.1 and up)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
</windowsSettings>
</application>
</assembly>
@bjornblissing
Copy link
Author

bjornblissing commented Nov 30, 2017

More information can be found in the following MSDN article:
PROCESS_DPI_AWARENESS enumeration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment