Today I’ve made a little program to quickly change the screen resolution from the command line. It’s written in C++, and can be downloaded from here. The source code looks like this:

Changing the resolution is done using the Win32 API ChangeDisplaySettings. After setting the resolution, running applications need to be notified which is done by calling SendMessage. The rest is pretty straightforward.

Categories: C/C++Programming

Aswin van Woudenberg

I'm a software engineer based in the Netherlands. Besides software, I am also interested in areas ranging from music and art to mathematics and literature.

1 Comment

Jurre · January 26, 2009 at 11:19 am

Ja, opzich niet slecht. Ik had het zelf net even iets anders gedaan. Net wat beter, maarja. Ik had er een driehoek bij gedaan.

Leave a Reply

Your email address will not be published. Required fields are marked *