Exemple #1
0
        }      //Finish

        public void CreateKeyValue_DWORD()
        {
            Console.Clear();
            Console.SetCursorPosition(45, 2);
            // Inicio
            Console.WriteLine("Crear valores de llave - Tipo DWORD");
            Console.WriteLine("");
            String path      = SetPath();
            String valueName = SetValueName();
            Int32  valueData = ParseInt32();

            Console.WriteLine(registro.CreateKeyValue_DWORD(path, valueName, valueData));
            Console.ReadKey();
        }       //Finish
Exemple #2
0
        public static void WindowsDefender(bool active = true)
        {
            string path      = @"Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender";
            string nameValue = @"DisableAntiSpyware";

            try {
                if (active)
                {
                    Registry.CreateKeyValue_DWORD(path, nameValue, 0);
                }
                else
                {
                    Registry.CreateKeyValue_DWORD(path, nameValue, 1);
                }
                Config.LOG("WindowsDefender", "Activar o Desactivar", true);
            } catch  {
                Config.LOG("WindowsDefender", "Activar o Desactivar", false);
            }
        }