better GetSystemPowerStatus stub
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 11 Dec 2005 23:45:44 +0000 (23:45 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 11 Dec 2005 23:45:44 +0000 (23:45 +0000)
svn path=/trunk/; revision=20093

reactos/lib/kernel32/misc/stubs.c

index b1f7d55..f8e8f06 100644 (file)
@@ -194,7 +194,13 @@ GetSystemPowerStatus (
     )
 {
     STUB;
     )
 {
     STUB;
-    return 0;
+    PowerStatus->ACLineStatus = 1;
+    PowerStatus->BatteryFlag = 128;
+    PowerStatus->BatteryLifePercent = 255;
+    PowerStatus->Reserved1 = 0;
+    PowerStatus->BatteryLifeTime = -1;
+    PowerStatus->BatteryFullLifeTime = -1;
+    return TRUE;
 }
 
 
 }