Esempio n. 1
0
 public ConhostAnsiConsole(IntPtr consoleOutPtr, IntPtr consoleInPtr)
 {
     ConsoleOutPtr  = consoleOutPtr;
     ConsoleInPtr   = consoleInPtr;
     WindowsVersion = Registry.GetValue(RegCurrentVersion, "ProductName", "").ToString();
     Win10          = WindowsVersion.Trim().ToLower().StartsWith("windows 10");
     if (Win10)
     {
         int releaseId = int.Parse(Registry.GetValue(RegCurrentVersion, "ReleaseId", "-1").ToString());
         Win10CU = releaseId >= 1703;
     }
 }