![]() |
VOOZH | about |
dotnet add package Microsoft.Win32.SystemEvents --version 10.0.9
NuGet\Install-Package Microsoft.Win32.SystemEvents -Version 10.0.9
<PackageReference Include="Microsoft.Win32.SystemEvents" Version="10.0.9" />
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="Microsoft.Win32.SystemEvents" />Project file
paket add Microsoft.Win32.SystemEvents --version 10.0.9
#r "nuget: Microsoft.Win32.SystemEvents, 10.0.9"
#:package Microsoft.Win32.SystemEvents@10.0.9
#addin nuget:?package=Microsoft.Win32.SystemEvents&version=10.0.9Install as a Cake Addin
#tool nuget:?package=Microsoft.Win32.SystemEvents&version=10.0.9Install as a Cake Tool
Provides support for accessing Windows system event notifications, which can be crucial for applications to respond to changes in the system or user environment.
Through this assembly, applications can subscribe to a set of global system events provided by the SystemEvents class, gaining the ability to react to changes like system power mode alterations, user preference modifications, and session switches, among others.
An example of how to use the SystemEvents class to react to system changes:
using Microsoft.Win32;
// Set the SystemEvents class to receive event notification when a user
// preference changes, the palette changes, or when display settings change.
SystemEvents.UserPreferenceChanging += UserPreferenceChanging;
SystemEvents.PaletteChanged += PaletteChanged;
SystemEvents.DisplaySettingsChanged += DisplaySettingsChanged;
// For demonstration purposes, this application sits idle waiting for events.
Console.WriteLine("This application is waiting for system events.");
Console.WriteLine("Press <Enter> to terminate this application.");
Console.ReadLine();
// This method is called when a user preference changes.
static void UserPreferenceChanging(object sender, UserPreferenceChangingEventArgs e)
{
Console.WriteLine($"The user preference is changing. Category={e.Category}");
}
// This method is called when the palette changes.
static void PaletteChanged(object sender, EventArgs e)
{
Console.WriteLine("The palette changed.");
}
// This method is called when the display settings change.
static void DisplaySettingsChanged(object sender, EventArgs e)
{
Console.WriteLine("The display settings changed.");
}
In this example, the methods will be invoked whenever the user modifies one of several system settings.
The main types provided by this library are:
Microsoft.Win32.SystemEventsMicrosoft.Win32.PowerModeChangedEventHandlerMicrosoft.Win32.SessionEndedEventHandlerMicrosoft.Win32.UserPreferenceChangedEventHandlerMicrosoft.Win32.SystemEvents is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Microsoft.Win32.SystemEvents:
| Package | Downloads |
|---|---|
|
System.Drawing.Common
Provides access to GDI+ graphics functionality. Commonly Used Types: System.Drawing.Bitmap System.Drawing.BitmapData System.Drawing.Brush System.Drawing.Font System.Drawing.Graphics System.Drawing.Icon Since .NET 7, non-Windows platforms are not supported, even with the runtime configuration switch. See https://aka.ms/systemdrawingnonwindows for more information. |
|
|
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard. |
|
|
TopShelf.ServiceInstaller
Topshelf is an open source project for hosting services without friction. By referencing Topshelf, your console application *becomes* a service installer with a comprehensive set of command-line options for installing, configuring, and running your application as a service. |
|
|
GroupDocs.Conversion
This is a cross-platform version of GroupDocs.Conversion for .NET. GroupDocs.Conversion for .NET is a powerful and intuitive library used for documents conversion. Convert DOC to PDF, PDF to DOC, XLS to DOC, PPT to PDF and any other popular file formats with simple, intuitive and flexible API. For more details on the GroupDocs.Conversion for .NET API, please visit product website at: https://products.groupdocs.com/conversion/net Note: The library will run in evaluation mode. In order to test full features of the product, please request a free 30-day temporary license. |
|
|
Uno.WinUI.Runtime.Skia.Gtk
This package provides the platform support for Skia in Uno Platform projects. |
Showing the top 20 popular GitHub repositories that depend on Microsoft.Win32.SystemEvents:
| Repository | Stars |
|---|---|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
|
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
|
|
|
BartoszCichecki/LenovoLegionToolkit
Lightweight Lenovo Vantage and Hotkeys replacement for Lenovo Legion laptops.
|
|
|
mgth/LittleBigMouse
DPI Aware mouse move across screens
|
|
|
UnigramDev/Unigram
Telegram for Windows
|
|
|
dotnet/winforms
Windows Forms is a .NET UI framework for building Windows desktop applications.
|
|
|
Topshelf/Topshelf
An easy service hosting framework for building Windows services using .NET
|
|
|
ClassIsland/ClassIsland
一款功能强、可定制、跨平台,适用于班级多媒体屏幕的课表信息显示工具,可以一目了然地显示各种信息。
|
|
|
WalletWasabi/WalletWasabi
Open-source, non-custodial, privacy preserving Bitcoin wallet for Windows, Linux, and Mac.
|
|
|
WPFDevelopersOrg/WPFDevelopers
🎉 Welcome to follow the official account of "WPFDevelopers"! It covers the basic controls and custom control library (screenshot controls) of WPF. This project will be constantly updated, welcome to us ⭐ ️
|
|
|
LenovoLegionToolkit-Team/LenovoLegionToolkit
Lenovo Legion Toolkit (LLT) is a Windows desktop utility created for Lenovo gaming laptops that replaces Lenovo Vantage, Legion Zone, and Legion Space.
|
|
|
VirtoCommerce/vc-platform
Virto Commerce B2B Innovation Platform
|
|
|
Artemis-RGB/Artemis
Provides advanced unified lighting across many different brands RGB peripherals
|
|
|
dalyIsaac/Whim
Pluggable dynamic window manager for Windows🏗️🪟
|
|
|
creewick/uWidgets
Standalone .NET application with a variety of customizable widgets
|
|
|
pdfforge/PDFCreator
PDFCreator - The free PDF Converter
|
|
|
EvanMulawski/FanControl.CorsairLink
The unofficial CorsairLink plugin for Fan Control. Adds support for Corsair controllers, liquid coolers, and power supplies. An alternative to iCUE.
|
|
|
ArakawaHenri/EnergyStarX
Throttle background programs automatically.
|
|
|
VixenLights/Vixen
Vixen is a lighting sequencer for creating animated light shows.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 1,100 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 4,138 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 4,244 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 5,190 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 10,303 | 2/10/2026 |
| 10.0.9 | 158,113 | 6/9/2026 |
| 10.0.8 | 864,296 | 5/12/2026 |
| 10.0.7 | 1,139,900 | 4/21/2026 |
| 10.0.6 | 414,432 | 4/14/2026 |
| 10.0.5 | 1,533,826 | 3/12/2026 |
| 10.0.4 | 149,654 | 3/10/2026 |
| 10.0.3 | 1,485,064 | 2/10/2026 |
| 10.0.2 | 1,645,627 | 1/13/2026 |
| 10.0.1 | 1,472,263 | 12/9/2025 |
| 9.0.17 | 7,314 | 6/9/2026 |
| 9.0.16 | 51,300 | 5/12/2026 |
| 9.0.15 | 220,175 | 4/14/2026 |
| 9.0.14 | 157,928 | 3/10/2026 |
| 9.0.13 | 98,758 | 2/10/2026 |
| 9.0.12 | 130,447 | 1/13/2026 |