public void NotifyOff() { //Registry.SetValue(GetNotificationRegPath(), "DisableNotifications", 1, RegistryValueKind.DWord); //Platform.Instance.Shell1(Platform.Instance.LocateExecutable("netsh.exe"), "firewall set notifications mode=disable profile=" + GetOldFirewallProfileName()); NetworkLockWindowsFirewall.NetShAdvFirewall("set " + id.Safe() + " settings inboundusernotification disable"); }
public void RestorePolicy() { NetworkLockWindowsFirewall.NetShAdvFirewall("set " + id.Safe() + " firewallpolicy " + Inbound + "," + Outbound); }
public void StateOff() { NetworkLockWindowsFirewall.NetShAdvFirewall("set " + id.Safe() + " state off"); }