This documentation is archived and is not being maintained.

SystemEvents Class

Provides a set of global system events to callers. This class cannot be inherited.

For a list of all members of this type, see SystemEvents Members.


[Visual Basic]
NotInheritable Public Class SystemEvents
public sealed class SystemEvents
public __gc __sealed class SystemEvents
public class SystemEvents

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


System events are things such as shutdown notifications and changes to user preferences.

When a system event is raised calls back the corresponding delegate from a different thread. Therefore, you should make the call thread-safe.

If you need to call a system event that is not exposed as a member of this class, you can use the InvokeOnEventsThread method.

Note   Do not perform time-consuming processing in a system event notification because it might prevent other applications from functioning.


Namespace: Microsoft.Win32

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

SystemEvents Members | Microsoft.Win32 Namespace