_VPOWERD_Get_Power_Status
POWERRET _VPOWERD_Get_Power_Status(POWER_DEVICE_ID Power_Device_Id,
LPPOWER_STATUS lpPower_Status);
Retrieves the power status of the system, such as whether the system is running on AC or DC power, whether the battery is currently charging, and how much battery life currently remains.
- Returns PR_SUCCESS if successful, or one of the error values beginning with PR_ listed in VPOWERD.H.
- Power_Device_ID
- APM 1.1 identifier of the device. Use the Plug and Play BIOS function Get APM 1.1 ID Table (Function 0Bh) to retrieve an identifier.
- lpPower_Status
- Address of a POWER_STATUS structure that receives the power status.