Вопрос

I would like to check if the firewall is enabled in Windows through C code, I found some methods in C# but only a little bit information from C, How I could do that?, thanks

Это было полезно?

Решение 2

use INetFwProfile interface . MSDN example of [c++] is available here.

Другие советы

You could use the Windows Firewall API. For Windows XP you read the InetFwProfile::FirewallEnabled property. On Vista or later you could use the Windows Firewall with Advanced Security API.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top