Win32OperatingSystem.st
changeset 24929 ebd235e61981
parent 24898 77318c4b1205
child 24997 8cdead7752ef
--- a/Win32OperatingSystem.st	Tue Nov 19 14:12:23 2019 +0100
+++ b/Win32OperatingSystem.st	Tue Nov 19 17:29:21 2019 +0100
@@ -8490,6 +8490,29 @@
     "Created: / 18-12-2006 / 13:01:41 / User"
 !
 
+rejectHighDpiAwareModeFromEnviroment
+    "if you set the high dpi aware mode via binary file properties or via registry (what 
+     we do in expecco), which is the identical setting, because the toggle value in 
+     binary file properties will be stored in the same registry key:
+     HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
+
+     we get (in opposite to set the high dpi aware mode via manifest) the 
+     environment attribute:
+     __COMPAT_LAYER
+
+     which will be inherited by all sub processes,
+     but we dont wan't to set this setting for all subprocesses,
+     they should be able to decide its high dpi aware mode by themself
+
+     therefor we have to remove this environment attribute as early as possible"
+
+    OperatingSystem 
+        setEnvironment:'__COMPAT_LAYER' 
+        to:''
+
+    "Created: / 19-11-2019 / 17:22:15 / Stefan Reise"
+!
+
 writePrivateProfileString:appName keyName:keyName profileString:profString fileName:aString
 
    ^self primWritePrivateProfileString:appName keyName:keyName profileString:profString fileName:aString