diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Utilities/SystemInfo.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Utilities/SystemInfo.cs | 9 |
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"); + } } } |