none
How to check whether anyother firewall other than windows firewall has installed on pc and what is its state?is it on or off? RRS feed

  • Question

  • I have to check whether any other firewall for e.g.Suppose Symantec firwall installed on pc and what is its state currently?is it on or off?

    So how can i check this using the code in c#....Is it possible to do such checks through code....also if its state is off then can we change to on?


    Thanks,
    Monday, October 25, 2010 9:34 AM

Answers

All replies

  • Microsoft supplies APIs to determine if Windows Firewall is enabled.  This does not extend to 3rd party firewalls.

    http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=08D23DA9-FF0E-4E6F-B742-878CA1977C55&displaylang=en
    http://msdn.microsoft.com/en-us/library/dd607246(VS.85).aspx
    http://msdn.microsoft.com/en-us/library/aa366442(v=VS.85).aspx

    Hope this helps.


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Monday, October 25, 2010 4:36 PM
    Moderator
  • I went through those links but i dont understood how they could help me?Can you please explain me those things...Does it means like i cant check with third party firewalls.

    I will be really thankful.


    Thanks,
    Monday, November 22, 2010 5:34 AM
  • Can you query for applications that have handles to the Windows Filtering Platform? 
    Monday, December 6, 2010 1:28 AM
  • The links show how a third party should take ownership of the category when they are installed. You can query the categories via the Netsh interface or WFAS API set. Hope this helps,
    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Monday, December 6, 2010 7:15 AM
    Moderator
  • Yes you can enumerate all sessions. Call FwpmSessionEnum0. we have recommended that each company fill in the DisplayData properly (the name with their company name, and the description with their product name). If they are logo certified drivers, then this has been validated, if not, then those could be anything... The same could be said for enumerating all filters, providers, callouts etc on the machine Hope this helps,
    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Monday, December 6, 2010 7:18 AM
    Moderator