add IsDCH function

This commit is contained in:
fyr77 2020-08-19 19:35:21 +02:00
parent 3c4dc9da2b
commit 4e58a588f1

View file

@ -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");
}
}
}