I got below mentioned code for adding my application to Windows Firewall Exception list.
I wanted to know if this will also work for other firewalls eg: Antivirus firewalls
@Allan, your code only works for the windows firewall or for Firewalls wich uses the windows firewall exceptions list.
unfortunately there is no standard way of adding exceptions to third-party firewalls, since most of these use their own methods to handle exceptions and access rules.