- 2


/p>

VESATEST, VBE BIOS. , . , . VESATEST :

VESATEST < >

< > , . 7.1.

7.1. VESATEST.CPP

#include <stdio.h>

#include <conio.h>

#include <string.h>

#include <dos.h>

#include "vesa.h"


//

int main( int argc, char * argv[] );

int GetBaseVESAInfo(FILE*);

int AnalyseResult(union REGS);


//

int main( int argc, char * argv[] )

{

FILE *fileVesaReport;

int iResult;


//

if( argc != 2 )

{

printf("\n : VESATEST < >"

"\n < >: , "

" ");

return -1;

}


//

fileVesaReport = fopen(argv[1], "w+");


// fileVesaReport VBE

//

iResult = GetBaseVESAInfo(fileVesaReport);


//

fclose(fileVesaReport);


return ((iResult==0) ? 0 : -1);

}


//===========================================================

// GetBaseVESAInfo

//===========================================================

int

GetBaseVESAInfo(FILE *file)

{

union REGS regs;

struct SREGS segregs;

int iResult, i;


// VBE

VESAINFO vesaInfo;

VESAMODEINFO modeInfo;