v2: Read the documented Windows AppCompatFlags [^1] registry settings instead, with a Wine extension to allow overriding the setting for every application (using the default keys value).
[^1]: HKCU and HKLM `Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers`.