mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
be30996020
We are able to patch the taskbar settings in DisplayProfiles without needing to get the users to remake their display proifiles. This changes the messaging to users. This changes *should* be the last ones needed to get taskbar setting integrated. Fixes #78 (as much as we can fix it).
23 lines
548 B
C#
23 lines
548 B
C#
using Microsoft.Win32;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DisplayMagicianShared
|
|
{
|
|
class Utils
|
|
{
|
|
public static bool IsWindows11()
|
|
{
|
|
var reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
|
|
|
|
var currentBuildStr = (string)reg.GetValue("CurrentBuild");
|
|
var currentBuild = int.Parse(currentBuildStr);
|
|
|
|
return currentBuild >= 22000;
|
|
}
|
|
}
|
|
}
|