Using Windows Firewall programmatically

22.2k Views Asked by At

I have difficulties to find anything related to Windows firewall (about how to add aplications to except list, close ports or disable internet access to some applications) in C++. I found even MS site shows examples in Visual Basic.

Where I can find examples in C++?

Thanks

2

There are 2 best solutions below

0
On

When working with Windows Vista and later, the Windows Firewall with Advanced Security API is also available.

2
On

Check the article Exercising the Firewall using C++ on MSDN.