ISensOnNow::OnACPower method (sensevts.h)
SENS calls the OnACPower method to notify your application that the computer is using AC power.
Syntax
HRESULT OnACPower();
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Method returned successfully. |
Remarks
SENS calls this method to notify your application that AC power has been activated.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for