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

Title Description
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.
IsDestinationReachableW The IsDestinationReachable function determines whether or not a specified destination can be reached, and provides Quality of Connection (QOC) information for a destination.
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.
Logoff The Logoff method notifies an application that a user is logged off.
Logon The Logon method notifies an application that a user is logged on.
Logon The Logon method notifies an application that a user is logged on.
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

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

Title Description
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.