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?
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?