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 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