Home >Backend Development >C#.Net Tutorial >C# responds to changes in system configuration items

C# responds to changes in system configuration items

大家讲道理
大家讲道理Original
2016-11-10 10:10:341559browse

For example, after we lock the system, if QQ does not exit, it will show a busy status.

Please add the namespace Microsoft.Win32, and then register the following events.

. DisplaySettingsChanged (including Changing) display settings

. InstalledFontsChanged font change

. PaletteChanged

. PowerModeChanged power state

. SessionEnded (the user is logging out or the session has ended)

.

. TimeChanged

. UserPreferenceChanged (User preference includes Changing)

Our ERP system will monitor whether the system time has changed. If the time is adjusted outside the range of the ERP license file, the ERP software will become unavailable.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn