ISensOnNow interface
The ISensOnNow interface handles AC and battery power events fired by the System Event Notification Service (SENS).
When to implement
Implement this interface on your sink object if you subscribe to any of the SENS power events. Each event corresponds to a method in this interface. This interface is an outgoing interface defined by SENS and implemented by the subscriber application as a dispatch interface.
When to use
SENS and the COM Event System call the ISensOnNow methods on your sink object to fire the corresponding event.
Members
The ISensOnNow interface inherits from the IDispatch interface. ISensOnNow also has these types of members:
Methods
The ISensOnNow interface has these methods.
| Method | Description |
|---|---|
| BatteryLow |
Battery power is low. |
| OnACPower |
Switched to AC power. |
| OnBatteryPower |
Switched to Battery power. |
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Type library |
|
|
DLL |
|
|
IID |
IID_ISensOnNow is defined as d597bab2-5b9f-11d1-8dd2-00aa004abd5e |
See also