Platform SDK: Synchronization Manager

ISensOnNow::OnBatteryPower

SENS calls this method to notify your application that the computer is using battery power.

HRESULT OnBatteryPower(
  DWORD dwBatteryLifePercent    // Percent of battery power remaining
);

Parameters

dwBatteryLifePercent
[in] Specifies the percent of battery power remaining.

Dispatch Identifier

[id(0x00000002)]

Return Values

S_OK
Method returned successfully.

Remarks

SENS calls this method to notify your application that the computer is using battery power. The remaining percentage of battery power is specified.

Filtering

Filtering is not currently supported for this event.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Sensevts.h.
  Library: Use Sensevts.tlb.

See Also

ISensOnNow::BatteryLow, ISensOnNow::OnACPower, About System Event Notification Service, IEventSubscription, IEventSubscription::PutPublisherProperty