TestimoX

API Reference

Class

FirewallActions

Namespace ComputerX.Firewall
Assembly ComputerX
Modifiers static

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: Boolean

Set default inbound action (Allow/Block) for the specified profile(s).

Parameters

profile ComputerX.Firewall.FirewallProfileKind requiredposition: 0
allow System.Boolean requiredposition: 1
public static Boolean SetDefaultOutbound(FirewallProfileKind profile, Boolean allow) #
Returns: Boolean

Set default outbound action (Allow/Block) for the specified profile(s).

Parameters

profile ComputerX.Firewall.FirewallProfileKind requiredposition: 0
allow System.Boolean requiredposition: 1
public static Boolean SetEnabled(FirewallProfileKind profile, Boolean enabled) #
Returns: Boolean

Enable/disable firewall on the specified profile(s).

Parameters

profile ComputerX.Firewall.FirewallProfileKind requiredposition: 0
enabled System.Boolean requiredposition: 1