kernel32: Improve the GetSystemPowerStatus stub.
This commit is contained in:
parent
75ba56f066
commit
7797bc0714
@ -37,10 +37,21 @@ BOOL WINAPI GetDevicePowerState(HANDLE hDevice, BOOL* pfOn)
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* GetSystemPowerStatus (KERNEL32.@)
|
* GetSystemPowerStatus (KERNEL32.@)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr)
|
BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS ps)
|
||||||
{
|
{
|
||||||
WARN("(): stub, harmless.\n");
|
WARN("(%p): stub, harmless.\n", ps);
|
||||||
return FALSE; /* no power management support */
|
|
||||||
|
if (ps)
|
||||||
|
{
|
||||||
|
ps->ACLineStatus = 255;
|
||||||
|
ps->BatteryFlag = 255;
|
||||||
|
ps->BatteryLifePercent = 255;
|
||||||
|
ps->Reserved1 = 0;
|
||||||
|
ps->BatteryLifeTime = ~0u;
|
||||||
|
ps->BatteryFullLifeTime = ~0u;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user