Exemple #1
0
        public HidGuardianManager(RegistryModifierService registryModifierService)
        {
            this.registryModifierService = registryModifierService;
            string driverFile = Path.Combine(Environment.SystemDirectory, "drivers", "HidGuardian.sys");

            if (File.Exists(driverFile))
            {
                Installed = true;
                logger.Info($"HidGuardian is installed with version: {FileVersionInfo.GetVersionInfo(driverFile).FileVersion}");
            }
            else
            {
                Installed = false;
                logger.Info($"HidGuardian is not installed");
            }
        }
Exemple #2
0
 public IdHelper(RegistryModifierService registryModifierService)
 {
     this.registryModifierService = registryModifierService;
 }