Get the screen resolution.

Get the screen resolution.

GetSystemMetrics

See version :

Pas de dépendances

Download :

#include <windows.h>
#include <stdio.h>

int main()
{
    int cx,cy;
    cx = GetSystemMetrics(SM_CXSCREEN);
    cy = GetSystemMetrics(SM_CYSCREEN);
    printf("Résolution : %d x %d\n",cx,cy);
    return 0;
}



Explanations

	No explanations yet.