How to include namespaces correctly in Windows manifest file
14:56 06 Mar 2026

I'm writing in C for Windows using GNU gcc MinGW64, in Codeblocks. I have embedded a Windows manifest file and a resource script file in my project. I would like to achieve maximum non-ugliness for my program's GUI, and also maximum backwards-compatibility with older versions of Windows, if possible. The WindowsSettings elements that I would like to include are dpiAware, dpiAwareness, gdiScaling, highResolutionScrollingAware and ultraHighResolutionScrollingAware, or some subset thereof, in case some supercede others in ways that cannot be made backwards-compatible. I have read here:

Windows manifest file schema

what are the xml namespaces for these 5 elements. Using this information, I have made the following 5 manifests, each of which seems to work:



  
    
      true
    
  



  
    
      PerMonitorV2
    
  



  
    
      true
    
  



  
    
      true
    
  



  
    
      true
    
  

My question is, how to include these 5 elements in a single manifest, in particular, where to put the various xml namespaces ?

c windows user-interface manifest