summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Utilities
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-09-22 19:45:24 +0100
committersr55 <[email protected]>2018-09-22 19:45:24 +0100
commitc0ab54be2370f7ddd889738a425e8076d76c9043 (patch)
tree5b49b176cce9ea765538239aa5189a7c721529e2 /win/CS/HandBrakeWPF/Utilities
parentebc64438a1c1621f9aef1d38f166419ed5b6e92c (diff)
WinGui: Implementing the new queue design. This is currently experimental and has to be explicitly enabled in preferences -> General #1087
Diffstat (limited to 'win/CS/HandBrakeWPF/Utilities')
-rw-r--r--win/CS/HandBrakeWPF/Utilities/SystemInfo.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs b/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs
index 57c768fdd..ca32b7af4 100644
--- a/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs
+++ b/win/CS/HandBrakeWPF/Utilities/SystemInfo.cs
@@ -110,5 +110,14 @@ namespace HandBrakeWPF.Utilities
return gpuInfo;
}
}
+
+ public static bool IsWindows10()
+ {
+ var reg = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion");
+
+ string productName = (string)reg.GetValue("ProductName");
+
+ return productName.StartsWith("Windows 10");
+ }
}
}