From 286d1bf79cba75b2e8b8f07d899ff3fc28f8d981 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:01 +0200 Subject: [PATCH] Delete DisableBiometrics.cs --- .../Settings/Privacy/DisableBiometrics.cs | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/DisableBiometrics.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableBiometrics.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/DisableBiometrics.cs deleted file mode 100644 index dfb206c..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableBiometrics.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class DisableBiometrics : SettingBase - { - private const string BiometricsKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Biometrics"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyDisableBiometrics; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyDisableBiometricsInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(BiometricsKey, "Enabled", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(BiometricsKey, "Enabled", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(BiometricsKey, "Enabled", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - - } -} \ No newline at end of file