# Microsoft.Win32.SystemEvents ```diff namespace Microsoft.Win32 { public sealed class SystemEvents { + [System.ObsoleteAttribute("SystemEvents.EventsThreadShutdown callbacks are not run before the process exits. Use AppDomain.ProcessExit instead.", DiagnosticId = "SYSLIB0059", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] public static event System.EventHandler? EventsThreadShutdown { add; remove; } } } ```