- 4


fprintf(file, " : '%s'\n",

vesaInfo.fpOEMProductName);

}


//

// VESA

for( i=0; i<50; i++ ) {


// VESA

if(vesaInfo.fpModeTable[i] == 0xFFFF) break;

fprintf(file, "\n\n %Xh \n",

vesaInfo.fpModeTable[i] );


// vesaInfo.fpModeTable[i]

regs.h.ah = 0x4f;

regs.h.al = 0x01;

regs.x.cx = vesaInfo.fpModeTable[i];

segregs.es = FP_SEG((void far *)&modeInfo);

regs.x.di = FP_OFF((void far *)&modeInfo);

int86x(0x10, &regs, &regs, &segregs);


// VBE

iResult = AnalyseResult(regs);

if(iResult != 0) return -1;


// modeInfo

fprintf(file, " : %04Xh \n",

modeInfo.usModeAttr);

fprintf(file, " : A %02Xh \n",

modeInfo.ucWinAAttr);

fprintf(file, " : B %02Xh \n",

modeInfo.ucWinBAttr);

fprintf(file, " : %d \n",

modeInfo.usWinGranularity);

fprintf(file, " , : %d \n",

modeInfo.usWinSize );

fprintf(file, " A: %04Xh \n",

modeInfo.usBegSegA );

fprintf(file, " B: %04Xh \n",

modeInfo.usBegSegB );