Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
SENS calls the OnBatteryPower method to notify an application that a computer is using battery power.
Syntax
HRESULT OnBatteryPower(
[in] DWORD dwBatteryLifePercent
);
Parameters
[in] dwBatteryLifePercent
The percent of battery power that remains.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The method returns successfully. |
Remarks
SENS calls this method to notify an application that a computer is using battery power. The remaining percentage of battery power is specified.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | sensevts.h |
DLL | Sens.dll |
See also
About System Event Notification Service