TeamTalk 5 .NET DLL  Version 5.14A
BearWare.WindowsFirewall Class Reference

A wrapper for the Windows Firewall API. More...

Static Public Member Functions

static bool IsEnabled ()
 Check if the Windows Firewall is currently enabled. More...
 
static bool Enable (bool bEnable)
 Enable/disable the Windows Firewall. More...
 
static bool AppExceptionExists (string szExecutable)
 Check if an executable is already in the Windows Firewall exception list. More...
 
static bool AddAppException (string szName, string szExecutable)
 Add an application to the Windows Firewall exception list. More...
 
static bool RemoveAppException (string szExecutable)
 Remove an application from the Windows Firewall exception list. More...
 

Detailed Description

A wrapper for the Windows Firewall API.

Definition at line 9098 of file TeamTalk.cs.

Member Function Documentation

◆ IsEnabled()

static bool BearWare.WindowsFirewall.IsEnabled ( )
static

Check if the Windows Firewall is currently enabled.

This function does not invoke UAC on Windows Vista/7.

See also
WindowsFirewall.Enable()

Definition at line 9105 of file TeamTalk.cs.

◆ Enable()

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.

See also
WindowsFirewall.IsEnabled()

Definition at line 9118 of file TeamTalk.cs.

◆ AppExceptionExists()

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.

See also
WindowsFirewall.AddAppException()

Definition at line 9128 of file TeamTalk.cs.

◆ AddAppException()

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.

See also
WindowsFirewall.AppExceptionExists()
WindowsFirewall.RemoveAppException()

Definition at line 9141 of file TeamTalk.cs.

◆ RemoveAppException()

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.

See also
WindowsFirewall.AppExceptionExists()
WindowsFirewall.AddAppException()

Definition at line 9154 of file TeamTalk.cs.