<PackageReference Include="Microsoft.Win32.SystemEvents" Version="10.0.0-rc.2.25502.107" />

SystemEvents

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

Occurs when the user changes the display settings.

Occurs when the display settings are changing.

public static event EventHandler EventsThreadShutdown

Occurs before the thread that listens for system events is terminated.

public static event EventHandler InstalledFontsChanged

Occurs when the user adds fonts to or removes fonts from the system.

public static event EventHandler LowMemory

Occurs when the system is running out of available RAM.

public static event EventHandler PaletteChanged

Occurs when the user switches to an application that uses a different palette.

Occurs when the user suspends or resumes the system.

Occurs when the user is logging off or shutting down the system.

Occurs when the user is trying to log off or shut down the system.

Occurs when the currently logged-in user has changed.

public static event EventHandler TimeChanged

Occurs when the user changes the time on the system clock.

Occurs when a windows timer interval has expired.

Occurs when a user preference has changed.

Occurs when a user preference is changing.

public static IntPtr CreateTimer(int interval)

Creates a new window timer associated with the system events window.

public static void InvokeOnEventsThread(Delegate method)

Invokes the specified delegate using the thread that listens for system events.

public static void KillTimer(IntPtr timerId)

Terminates the timer specified by the given id.