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