Detect Windows XP SP2 firewall.
-
Hi I am trying to programmatically test if the windows firewall is enabled or not. I guess there is a value for this in the registry but I wanted to ask here for any better solutions to do this test. Maybe WMI if posible? Any Thoughts? Thanks:doh:
When people make you see red, be thankful your not colour blind.
-
Hi I am trying to programmatically test if the windows firewall is enabled or not. I guess there is a value for this in the registry but I wanted to ask here for any better solutions to do this test. Maybe WMI if posible? Any Thoughts? Thanks:doh:
When people make you see red, be thankful your not colour blind.
Take a look at the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy
key. Two subkeys, Domain and Standard Profile. Under my StandardProfile there's a DWORD calledEnableFirewall
, 1 if enabled, 0 if disabled. You might also want to take a look at this[^] article. C++ I know but everyone should get their feet dirty once in a while :rolleyes:
I have no idea what I just said. But my intentions were sincere.