API Reference
Class
FirewallActions
Actions to modify Windows Firewall (requires admin). Uses HNetCfg.FwPolicy2 COM API. Local machine only.
Inheritance
- Object
- FirewallActions
Methods
public static Boolean SetDefaultInbound(FirewallProfileKind profile, Boolean allow) #Returns:
BooleanSet default inbound action (Allow/Block) for the specified profile(s).
Parameters
- profile ComputerX.Firewall.FirewallProfileKind
- allow System.Boolean
public static Boolean SetDefaultOutbound(FirewallProfileKind profile, Boolean allow) #Returns:
BooleanSet default outbound action (Allow/Block) for the specified profile(s).
Parameters
- profile ComputerX.Firewall.FirewallProfileKind
- allow System.Boolean
public static Boolean SetEnabled(FirewallProfileKind profile, Boolean enabled) #Returns:
BooleanEnable/disable firewall on the specified profile(s).
Parameters
- profile ComputerX.Firewall.FirewallProfileKind
- enabled System.Boolean
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object