How do I find out the resolution (current) using API? Thanks
Printable View
How do I find out the resolution (current) using API? Thanks
That what you want?Code:
long xres,yres;
xres = GetSystemMetrics(SM_CXSCREEN);
yres = GetSystemMetrics(SM_CYSCREEN);
printf("%s %ld %s %ld","Resolution is: ",xres,"by",yres);