Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Detect Windows XP SP2 firewall.

Detect Windows XP SP2 firewall.

Scheduled Pinned Locked Moved Visual Basic
windows-adminquestiondiscussion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    japel
    wrote on last edited by
    #1

    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.

    E 1 Reply Last reply
    0
    • J japel

      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.

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      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 called EnableFirewall, 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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups