ITCPowerStatus

Returns the AC line status, main battery status, backup battery status, and remaining percentage of battery life.

Syntax

HRESULT ITCPowerStatus (
LPDWORD lpdwLineStatus,
LPDWORD lpdwBatteryStatus,
LPDWORD lpdwBackupStatus,
UINT *puFuelGauge
);

Parameters

lpdwLineStatus
[out] Returns the AC line status:

lpdwBatteryStatus
[out] Returns the main battery status:

lpdwBackupStatus
[out] Returns the bridge battery status:

puFuelGauge
[out] Returns percentage of remaining battery life:

Return Values

ITC_SUCCESS
Success.

ITC_FAIL
Fail.

ITC_ERROR_FUNCTION_NOT_SUPPORTED
The function was called on a platform that does not support this feature.

Remarks

The Windows CE Win32 API provides a similar API function with GetSystemPowerStatusEx.

Header and Library Files

Header File: ITC50.H

Library: ITC50.LIB

More Information

Computer State Functions