Page 1 of 1

DPI Aware Manifest option in IDE

Posted: Sat Jan 02, 2010 10:15 pm
by Rescator
MSDN info link

Tips'n'tricks topic: http://www.purebasic.fr/english/viewtop ... 12&t=40507

Compatibility issue of the manifest in a certain situation with XP SP2 http://support.microsoft.com/kb/921337

Re: DPI Aware Manifest option in IDE

Posted: Sat Jan 02, 2010 10:33 pm
by Rescator
Something like the following manifest "should" work ok, I've yet to test this but will so later tonight, I'll post again after testing.
(assuming I figure out how to add the manifest that is...)

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
      <ms_asmv2:security>
         <ms_asmv2:requestedPrivileges>
            <ms_asmv2:requestedExecutionLevel level="asInvoker">
            </ms_asmv2:requestedExecutionLevel>
         </ms_asmv2:requestedPrivileges>
      </ms_asmv2:security>
   </ms_asmv2:trustInfo>
   <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
     <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
       <dpiAware>true</dpiAware>
     </asmv3:windowsSettings>
   </asmv3:application>
</assembly>

Re: DPI Aware Manifest option in IDE

Posted: Sun Jan 03, 2010 12:17 am
by Rescator
Ok! Just got done doing some testing.
The following should work on XP SP3 x86 (tested), Vista (not tested), Windows 7 x64 (x86 app tested).
I have no idea how Windows 2000 or old Win9x behaves with this manifest so any feedback on that would be great.

The following manifest is a example of XP style + Vista user access + Vista DPI aware.

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
	<assemblyIdentity type="win32" name="CompanyName.ProductName.YourApp" version="1.0.0.0" processorArchitecture="X86"/>
	<description/>
	<dependency>
		<dependentAssembly>
			<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/>
		</dependentAssembly>
	</dependency>
	<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
		<security>
			<requestedPrivileges>
				<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
			</requestedPrivileges>
		</security>
	</trustInfo>
	<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
		<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
			<dpiAware>true</dpiAware>
		</asmv3:windowsSettings>
	</asmv3:application>
</assembly
BTW! Is the "CompanyName.ProductName.YourApp" version="1.0.0.0" processorArchitecture="X86 stuff actually used for anything at all?
Any chance of having this match the version info stuff?

Re: DPI Aware Manifest option in IDE

Posted: Sat Feb 16, 2013 2:32 pm
by Rescator
I was hoping to see PureBasic 5.x to be DPI Aware, and now that PureBasic 5.10 is out,
maybe we can be lucky and see it in 5.20 or 5.30?