- 2



//

uiResult =

PowerCapabilities(&ucModes, &ucMajorVer, &ucMinorVer);


printf("\n\n Copyright (C)Frolov G.V.,1995. "

"E-mail: frolov@glas.apc.org\n");


if(uiResult==0) {

printf("\n VBE Power Management %d.%d",

(int)ucMajorVer, (int)ucMinorVer );


printf("\n :\n"

"STANDBY - %s\n"

"SUSPEND - %s\n"

"OFF - %s\n"

"REDUCED - %s\n",

(ucModes & STANDBY)? "" : "",

(ucModes & SUSPEND)? "" : "",

(ucModes & OFF)? "" : "",

(ucModes & REDUCED)? "" : ""

);

}


else if(uiResult < 0) {

printf("\n "

" " );

return;

}


else if(uiResult > 0) {

printf("\n "

"VBE Power Management" );

return;

}


//

uiResult = GetPowerState( &ucMode );

printf("\n GetPowerState %d",uiResult);

printf("\n GetPowerState = %x", ucMode );


printf("\n : %s\n",

(ucMode & STANDBY) ? "STANDBY" :