Changing Screen Resolution Through ChangeDisplaySetting() API
Posted on 2002-06-19
I have made a Win32 GDI Application which runs only in 800*600 Resolution.
I want, when the applicaton runs, if the display settings are other than 800*600, say 1K or might be 640*480, instead of user doing it manually, I want doing it my self through win32 code of the application.
Searching across MSDN I found changedisplaysetting and changedisplaysettingex and other device capable functions, but was not able to achieve the results.
Can anyone tell me exactly, how it can be done from these win32 device-capable API'S.
Also I just want to change the resolution of the screen and nothing else, such as refresh frequency, bit-rate etc.
Please suggest as how to do it.