Techwiki:AppCompat

Registry storage

The AppCompat settings are stored in the registry in the key 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags'.

Per application settings

For each program on the system that has been configured with AppCompat settings, there is one REG_SZ value in the 'Layers' subkey of the AppCompatFlags key.
The name of the value is the DOS path of the application, the value contains the settings as a space speparated list.