System Event Notification Service
Overview of the System Event Notification Service technology.
To develop System Event Notification Service, you need these headers:
For programming guidance for this technology, see:
Functions
BatteryLow The BatteryLow method notifies an application that battery power is low. SENS calls the BatteryLow method to notify an application that a computer is using battery power. |
ConnectionLost The ConnectionLost method notifies your application that the specified connection has been dropped. |
ConnectionMade The ConnectionMade method notifies your application that the specified connection has been established. |
ConnectionMadeNoQOCInfo The ConnectionMadeNoQOCInfo method notifies your application that the specified connection has been established with no Quality of Connection information available. |
DisplayLock The DisplayLock method notifies an application that the screen display is locked. |
DisplayUnlock The DisplayUnLock method notifies an application that the screen display is unlocked. |
IsDestinationReachableA The IsDestinationReachable function determines whether or not a specified destination can be reached, and provides Quality of Connection (QOC) information for a destination. (ANSI) |
IsDestinationReachableW The IsDestinationReachable function determines whether or not a specified destination can be reached, and provides Quality of Connection (QOC) information for a destination. (Unicode) |
IsNetworkAlive The IsNetworkAlive function determines whether or not a local system is connected to a network, and identifies the type of network connection, for example, a LAN, WAN, or both. |
Logoff The Logoff method notifies an application that a user is logged off. (ISensLogon.Logoff) |
Logoff The Logoff method notifies an application that a user is logged off. (ISensLogon2.Logoff) |
Logon The Logon method notifies an application that a user is logged on. (ISensLogon.Logon) |
Logon The Logon method notifies an application that a user is logged on. (ISensLogon2.Logon) |
OnACPower SENS calls the OnACPower method to notify your application that the computer is using AC power. |
OnBatteryPower SENS calls the OnBatteryPower method to notify an application that a computer is using battery power. |
PostShell Use the PostShell method when a user has logged on and Windows Explorer is running. This method is different from the Logon method because Logon is called after logon when the Shell may not yet be running. |
SessionDisconnect The SessionDisconnect method is used to disconnect from a Fast User Switching session or a Remote Desktop Connection. This is different from logging off from a session, because when you use this method the session is disconnected. |
SessionReconnect The session was reconnected. The SessionReconnect method is used when you reconnect to a Fast User Switching session or a Remote Desktop Connection. This is different from logging on to a new session. |
StartScreenSaver The StartScreenSaver method notifies an application that a screen saver is started. |
StartShell The StartShell method notifies an application that the shell is started. |
StopScreenSaver The StopScreenSaver method notifies an application that a screen saver is stopped. |
Interfaces
ISensLogon The ISensLogon interface handles logon events fired by SENS. |
ISensLogon2 The ISensLogon2 interface handles logon events fired by SENS. |
ISensNetwork The ISensNetwork interface handles network events fired by the System Event Notification Service (SENS). |
ISensOnNow The ISensOnNow interface handles AC and battery power events fired by the System Event Notification Service (SENS). |
Structures
QOCINFO The QOCINFO structure is returned by the IsDestinationReachable function and provides Quality of Connection information to the caller. |
SENS_QOCINFO The SENS_QOCINFO structure is used by the ISensNetwork::ConnectionMade method. This structure contains Quality of Connection information to the sink object in an application that subscribes to SENS. |
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