I want to disable completely the Windows DPI virtualization, but only for a particular application while it runs. The change should only affect the application lifetime.
In fact I want to reproduce the exact same effect as the following configuration, but without the user having to configure it manually (the below popup was get by right-clicking the .exe with the mouse, then selecting Properties):
Is there a way to do that from c++ code, using the Windows API?