Platform SDK: Synchronization Manager

ISensOnNow::OnACPower

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

HRESULT OnACPower(void);

Dispatch Identifier

[id(0x00000001)]

Return Values

S_OK
Method returned successfully.

Remarks

SENS calls this method to notify your application that AC power has been activated.

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::OnBatteryPower, About System Event Notification Service, IEventSubscription, IEventSubscription::PutPublisherProperty