diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index 6f2be10..015b6fd 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -11,6 +11,7 @@ using System.Xml; using System.Xml.Linq; using System.Text.RegularExpressions; using System.Runtime.InteropServices; +using Microsoft.Win32; namespace EnvyUpdate { @@ -368,5 +369,10 @@ namespace EnvyUpdate return result; } + public static bool IsDCH() + { + RegistryKey nvlddmkm = Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\services\nvlddmkm", true); + return nvlddmkm.GetValueNames().Contains("DCHUVen"); + } } } \ No newline at end of file