TMiTeC_APM retrieves AC, processor and battery power status


MSI_APM.pas


TObject → TPersistent → TComponent → TMiTeC_Component → TMiTeC_APM

Properties

ACPowerStatus

published, read-only

TPowerStatus

Signals AC power type and presence

Battery[BatIndex: Byte]

public, read-only

TBatteryRecord

Array of enumerated present batteries

BatteryCount

published, read-only

Byte

Number of present batteries

BatteryChargeStatus

published, read-only

TBatteryState

Overall battery charge status

BatteryLifeFullTime

published, read-only

Cardinal

Overall battery life full time in seconds

BatteryLifePercent

published, read-only

Byte

Overall battery life percentage

BatteryLifeTime

published, read-only

Cardinal

Battery current time to in seconds

ProcessorCount

published, read-only

Byte

Number of logical processors

ProcessorPowerStatus[CPUIndex: Byte]

public, read-only

TProcessorPowerInformation

Processor power status array


See Also

Demo 01

demo

Demo 10

demo

MSIX

application

Created with the Personal Edition of HelpNDoc: Free help authoring environment