Microsoft.Win32.SystemEvents Class

Provides access to system event notifications. This class cannot be inherited.

See Also: SystemEvents Members


public sealed class SystemEvents


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.


Namespace: Microsoft.Win32
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0,,