How to add exception to WInXP firewall programatically?  
Author Message
Kennon2005





PostPosted: .NET Base Class Library, How to add exception to WInXP firewall programatically? Top

I have my setup project which need to install SQL Server 2005 Express as database of my application. As it will be remotely connected, I need to add exceptions(sqlservr.exe and sqlbrowser.exe) to WinXP's firewall as specified by MS's documentation. How can I do it programatically




.NET Development22  
 
 
nobugz





PostPosted: .NET Base Class Library, How to add exception to WInXP firewall programatically? Top

You can add a COM reference to c:\windows\system32\hnetcfg.dll. To find out how to use it, start reading here...


 
 
Kennon2005





PostPosted: .NET Base Class Library, How to add exception to WInXP firewall programatically? Top

Our application is planned to run on Win Vista, is that applicable to Vista's firewall

Thanks