New
#1
Compatibility mode
I'm doing some research on an old application that I'm taking care of.
As of Windows 8, it works if the Windows compatibility mode is se to "Windows 7" and I confirmed it also works if I set the compatibility mode on Windows 10.
That problem I'm facing is that, I need to set the compatibility mode programatically, which I do in the installer for the app. Setting compatibility works properly on Windows 8 but not on Windows 10. It does not set anything. Suppose the same code simply does not work.
So I was playing with the registry to confirm that if I set a proper value for my app in the HKLM„SOFTWARE„Microsoft„Windows NT„CurrentVersion„AppCompatFlags„Layers key, the compatiblity mode get set.
This is straight forward and very easy to do.
The issue I encountered is that, if I set the registry value manually or programatically, it does not get really applied. Looking at my application's property clearly shows the compatibility mode is correctly set. But until I manually click on "OK" button while showing the "Compatibility" tab, the setting does not get finalized as far as I see.
If this is only way, basically the comapatibility mode needs to be set MANUALLY ONLY. It does not make sense for me.
Even worse, I tried the same test on Windows 8.1 and I've got exact same behaviour. It only works if the "OK" button is click in the property dialog while showing the "Compatibility" tab.
I'm really lost on how the capability mode works programatically.
If anyone has any clue on this, please shed a light for me or direct me to a good reference(s).
Thank you in advance.