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