So far, I have made my batter driver, but I still cann't use
"GetSystemPowerStatusEx" function in my application created by eMbedded
Visual C++ 4.0 or Windows CE 5.0. But the compile error was different. In
eVC, the error was as follows( I have include "Winbase.h" ):
D:\My Designs\TestBattery\HelloCE.cpp(182) : error C2065:
'GetSystemPowerStatusEx2' : undeclared identifier
But in Window CE 5.0 the error was:
BUILD: [01:0000000021:ERRORE]
d:\WINCE500\PBWorkspaces\sdk7a404\TestBatteryDriver\HelloCE.cpp(233) : error
C3861: 'BatteryAPIGetSystemPowerStatusEx': identifier not found, even with
argument-dependent lookup

I have tested my battery driver and it worked fine. May be I haven't
tell the system I have made the batter drver. So, can someone tell me how to
make "GetSystemPowerStatusEx" available? Thanks.

Re: How to make "GetSystemPowerStatusEx" available? by voidcoder

voidcoder
Mon Aug 28 04:05:44 CDT 2006


Add power management support to your OS design,
either SYSGEN_PM to get it really working or
just SYSGEN_PMSTUBS to get the code to compile.


On Mon, 28 Aug 2006 10:43:02 +0200, Jack Chen <JackChen@discussions.microsoft.com> wrote:

> So far, I have made my batter driver, but I still cann't use
> "GetSystemPowerStatusEx" function in my application created by eMbedded
> Visual C++ 4.0 or Windows CE 5.0. But the compile error was different. In
> eVC, the error was as follows( I have include "Winbase.h" ):
> D:\My Designs\TestBattery\HelloCE.cpp(182) : error C2065:
> 'GetSystemPowerStatusEx2' : undeclared identifier
> But in Window CE 5.0 the error was:
> BUILD: [01:0000000021:ERRORE]
> d:\WINCE500\PBWorkspaces\sdk7a404\TestBatteryDriver\HelloCE.cpp(233) : error
> C3861: 'BatteryAPIGetSystemPowerStatusEx': identifier not found, even with
> argument-dependent lookup
>
> I have tested my battery driver and it worked fine. May be I haven't
> tell the system I have made the batter drver. So, can someone tell me how to
> make "GetSystemPowerStatusEx" available? Thanks.
>
>