A wrapper for the Windows Firewall API. More...
Static Public Member Functions | |
static bool | IsEnabled () |
Check if the Windows Firewall is currently enabled. | |
static bool | Enable (bool bEnable) |
Enable/disable the Windows Firewall. | |
static bool | AppExceptionExists (string szExecutable) |
Check if an executable is already in the Windows Firewall exception list. | |
static bool | AddAppException (string szName, string szExecutable) |
Add an application to the Windows Firewall exception list. | |
static bool | RemoveAppException (string szExecutable) |
Remove an application from the Windows Firewall exception list. |
A wrapper for the Windows Firewall API.
static bool BearWare.WindowsFirewall.IsEnabled | ( | ) | [static] |
Check if the Windows Firewall is currently enabled.
This function does not invoke UAC on Windows Vista/7.
static bool BearWare.WindowsFirewall.Enable | ( | bool | bEnable | ) | [static] |
Enable/disable the Windows Firewall.
The Windows Firewall was introduced in Windows XP SP2.
On Windows XP (SP2+) the user calling this function is assumed to have administrator rights. On Windows Vista/7 UAC is invoked to ask the user for administrator rights.
static bool BearWare.WindowsFirewall.AppExceptionExists | ( | string | szExecutable | ) | [static] |
Check if an executable is already in the Windows Firewall exception list.
This function does not invoke UAC on Windows Vista/7.
static bool BearWare.WindowsFirewall.AddAppException | ( | string | szName, | |
string | szExecutable | |||
) | [static] |
Add an application to the Windows Firewall exception list.
On Windows XP (SP2+) the user calling this function is assumed to have administrator rights. On Windows Vista/7 UAC is invoked to ask the user for administrator rights.
static bool BearWare.WindowsFirewall.RemoveAppException | ( | string | szExecutable | ) | [static] |
Remove an application from the Windows Firewall exception list.
On Windows XP (SP2+) the user calling this function is assumed to have administrator rights. On Windows Vista/7 UAC is invoked to ask the user for administrator rights.