Export (0) Print
Expand All

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.

System.Object
   Microsoft.Win32.SystemEvents

[Visual Basic]
NotInheritable Public Class SystemEvents
[C#]
public sealed class SystemEvents
[C++]
public __gc __sealed class SystemEvents
[JScript]
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft