Log in

View Full Version : problems to call GetSystemPowerStatusEx2()


fuje
02-16-2005, 11:02 AM
hi
i try to use the function GetSystemPowerStatusEx2 to get the BatteryCondition under Windows CE 5.0 (developping with eVC).

so i included the Header

#include <Winbase.h>

and try to invoke this function

DWORD res; // result
_SYSTEM_POWER_STATUS_EX2 systemPowerStatus;

GetSystemPowerStatusEx2(&systemPowerStatus, sizeof(systemPowerStatus), true);

the problem i have is the compiler error:
: error C2065: 'GetSystemPowerStatusEx2' : undeclared identifier

do i have to include something else?

fuje
02-16-2005, 01:51 PM
o.k. i found it out by myself:

the problem was that this function was no in my plattform. so i had to make a new plattform, including the BatteryDriver