#include "wx/power.h"
#include "wx/msw/private.h"
+#if !defined(__WINCE_STANDARDSDK__)
+
+#ifdef __WXWINCE__
+ typedef SYSTEM_POWER_STATUS_EX SYSTEM_POWER_STATUS;
+ BOOL GetSystemPowerStatus(SYSTEM_POWER_STATUS *status)
+ {
+ return GetSystemPowerStatusEx(status, TRUE);
+ }
+#endif
+
// ----------------------------------------------------------------------------
// helper functions
// ----------------------------------------------------------------------------
return true;
}
+#endif
+
// ============================================================================
// implementation
// ============================================================================
wxPowerType wxGetPowerType()
{
+#if !defined(__WINCE_STANDARDSDK__)
SYSTEM_POWER_STATUS sps;
if ( wxGetPowerStatus(&sps) )
{
break;
}
}
+#endif
return wxPOWER_UNKNOWN;
}
wxBatteryState wxGetBatteryState()
{
+#if !defined(__WINCE_STANDARDSDK__)
SYSTEM_POWER_STATUS sps;
if ( wxGetPowerStatus(&sps) )
{
return wxBATTERY_CRITICAL_STATE;
}
}
+#endif
return wxBATTERY_UNKNOWN_STATE;
}
-
-