There is a function GetSystemPowerStatusEx2 defined for CE.
Structure definition:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/html/wce50lrfsystempowerstatusex2.asp
Function definition:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/
The definition of MODULEENTRY32 is not correct for CE. I'm also
adding a new #define.
The structure definition comes from:
http://msdn2.microsoft.com/en-us/library/ms886756.aspx
The #define name comes from:
http://msdn.microsoft.com/library/en-us/mobilesdk5/html/wce50lrfCreateToolhelp32Snapsho