From 127829a59ef7e2adee39a44c6989da881f2334fb Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:23:16 +0200 Subject: [PATCH] Delete DisableCEIP.cs --- .../Settings/Privacy/DisableCEIP.cs | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/DisableCEIP.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableCEIP.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/DisableCEIP.cs deleted file mode 100644 index b876b50..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableCEIP.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class DisableCEIP : SettingBase - { - private const string CEIPKey = @"HKEY_LOCAL_MACHINE\Software\Microsoft\SQMClient\Windows"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyDisableCEIP; - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyDisableCEIPInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(CEIPKey, "CEIPEnable", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(CEIPKey, "CEIPEnable", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(CEIPKey, "CEIPEnable", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file