From: <dan...@us...> - 2006-12-03 08:43:42
|
Revision: 836 http://svn.sourceforge.net/cegcc/?rev=836&view=rev Author: dannybackx Date: 2006-12-03 00:43:39 -0800 (Sun, 03 Dec 2006) Log Message: ----------- 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 <ke...@ko...> * include/winbase.h: Add SYSTEM_POWER_STATUS_EX structure. Add GetSystemPowerStatusEx function definition. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/winbase.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-29 00:00:39 UTC (rev 835) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-12-03 08:43:39 UTC (rev 836) @@ -1,3 +1,8 @@ +2006-12-02 Kevin O'Connor <ke...@ko...> + + * include/winbase.h: Add SYSTEM_POWER_STATUS_EX structure. + Add GetSystemPowerStatusEx function definition. + 2006-11-28 Danny Backx <dan...@us...> * include/aygshell.h (IDM_SHAREDNEW, IDM_SHAREDNEWDEFAULT) : Define. Modified: trunk/cegcc/src/w32api/include/winbase.h =================================================================== --- trunk/cegcc/src/w32api/include/winbase.h 2006-11-29 00:00:39 UTC (rev 835) +++ trunk/cegcc/src/w32api/include/winbase.h 2006-12-03 08:43:39 UTC (rev 836) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |