Annibale,
You can use SYSMETRIC(1) and SYSMETRIC(2) to figure out what resolution the computer is using.
>Is possible modified the resolution of the video during the execution of a program?
>
>For example I have the possibility of execute a program with the resolution 640 x 480 on a video with resolution 800 x 600 ?