One more patch.  This implements the definitions for the less capable
GetSystemPowerStatusEx command.

Definitions are from:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceshellui5/html/wce50lrfGetSystemPowerStatusEx.asp

and:

http://msdn.microsoft.com/library/en-us/wceshellui5/html/wce50lrfsystempowerstatusex.asp

-Kevin


2006-12-02  Kevin O'Connor  <[EMAIL PROTECTED]>

        * include/winbase.h: Add SYSTEM_POWER_STATUS_EX structure.
          Add GetSystemPowerStatusEx function definition.


Index: src/w32api/include/winbase.h
===================================================================
--- src/w32api/include/winbase.h        (revision 835)
+++ src/w32api/include/winbase.h        (working copy)
@@ -993,6 +993,20 @@
       BYTE bCertificate[1];
 } WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
 #ifdef _WIN32_WCE
+typedef struct _SYSTEM_POWER_STATUS_EX {
+  BYTE ACLineStatus;
+  BYTE BatteryFlag;
+  BYTE BatteryLifePercent;
+  BYTE Reserved1;
+  DWORD BatteryLifeTime;
+  DWORD BatteryFullLifeTime;
+  BYTE Reserved2;
+  BYTE BackupBatteryFlag;
+  BYTE BackupBatteryLifePercent;
+  BYTE Reserved3;
+  DWORD BackupBatteryLifeTime;
+  DWORD BackupBatteryFullLifeTime;
+} SYSTEM_POWER_STATUS_EX, *PSYSTEM_POWER_STATUS_EX, *LPSYSTEM_POWER_STATUS_EX;
 typedef struct _SYSTEM_POWER_STATUS_EX2 {
   BYTE ACLineStatus;
   BYTE BatteryFlag;
@@ -1573,6 +1587,7 @@
 WINBASEAPI BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS);
 #ifdef _WIN32_WCE
 WINBASEAPI DWORD GetSystemPowerStatusEx2(PSYSTEM_POWER_STATUS_EX2,DWORD,BOOL);
+WINBASEAPI BOOL GetSystemPowerStatusEx(PSYSTEM_POWER_STATUS_EX,BOOL);
 #endif
 #if (_WIN32_WINNT >= 0x0502)
 WINBASEAPI BOOL WINAPI GetSystemRegistryQuota(PDWORD,PDWORD);

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to