Platform SDK: Synchronization Manager

ISensOnNow

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.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.

IDispatch methods Description
GetTypeInfoCount Retrieves the number of type descriptions.
GetTypeInfo Retrieves a description of the object's programmable interface.
GetIDsOfNames Maps name of method or property to DISPID.
Invoke Calls one of the object's methods, or gets/sets one of its properties.

ISensOnNow methods Description
OnACPower Switched to AC power.
OnBatteryPower Switched to Battery power.
BatteryLow Battery power is low.

Requirements

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

See Also

ISensLogon, ISensNetwork, About System Event Notification Service