From 4d4bf5036560d2ac05c44c342af99dbe0036eae3 Mon Sep 17 00:00:00 2001 From: Belim Date: Sun, 20 Sep 2020 19:24:06 +0200 Subject: [PATCH] Delete DisableMSExperiments.cs --- .../Settings/Privacy/DisableMSExperiments.cs | 55 ------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/Privatezilla/Privatezilla/Settings/Privacy/DisableMSExperiments.cs diff --git a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableMSExperiments.cs b/src/Privatezilla/Privatezilla/Settings/Privacy/DisableMSExperiments.cs deleted file mode 100644 index f6c5a91..0000000 --- a/src/Privatezilla/Privatezilla/Settings/Privacy/DisableMSExperiments.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.Win32; - -namespace Privatezilla.Setting.Privacy -{ - internal class DisableMSExperiments: SettingBase - { - private const string ExperimentationKey = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\System"; - private const int DesiredValue = 0; - - public override string ID() - { - return Properties.Resources.settingsPrivacyDisableMSExperiments; - - } - - public override string Info() - { - return Properties.Resources.settingsPrivacyDisableMSExperimentsInfo; - } - - public override bool CheckSetting() - { - return !( - RegistryHelper.IntEquals(ExperimentationKey, "AllowExperimentation", DesiredValue) - ); - } - - public override bool DoSetting() - { - try - { - Registry.SetValue(ExperimentationKey, "AllowExperimentation", DesiredValue, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - public override bool UndoSetting() - { - try - { - Registry.SetValue(ExperimentationKey, "AllowExperimentation", 1, RegistryValueKind.DWord); - return true; - } - catch - { } - - return false; - } - - } -} \ No newline at end of file