in reply to Re: win32 help...in thread How to get screen resolution under Win32?
You can download Aldo's chres.pl script here.