See Also: SystemEvents Members
The Microsoft.Win32.SystemEvents class provides the ability to respond to specific types of system events.
When a system event is raised, any delegates attached to the event are called using the thread that monitors for system events. Therefore, you should make any calls from your event handlers thread-safe. If you need to call a system event that is not exposed as a member of this class, you can use the SystemEvents.InvokeOnEventsThread(Delegate) method.
Do not perform time-consuming processing on the thread that raises a system event handler because it might prevent other applications from functioning.
Some system events might not be raised on windowsver. Be sure to verify that your application works as expected on windowsver.