[PSDK] SYSTEM_POWER_STATUS: Rename Reserved1 to SystemStatusFlag (#2419)

As on Win10.

Cherry pick
7c5ea436af
This commit is contained in:
Serge Gautherie 2020-03-13 18:14:16 +01:00 committed by GitHub
parent cdab20283a
commit dbfd511ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -1755,9 +1755,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
@ -3612,9 +3612,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)

View file

@ -1151,7 +1151,7 @@ typedef struct _SYSTEM_POWER_STATUS {
BYTE ACLineStatus;
BYTE BatteryFlag;
BYTE BatteryLifePercent;
BYTE Reserved1;
BYTE SystemStatusFlag;
DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS,*LPSYSTEM_POWER_STATUS;