Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Controling Windows Vista firewall programmatically

Reply
Thread Tools Display Modes

Controling Windows Vista firewall programmatically

 
 
Ragid
Guest
Posts: n/a

 
      05-19-2009
Can I control Windows Vista firewall programmatically, using the api as I
would do with Windows XP?
Does Windows 7 support it?
Regards
Ragid


 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      05-20-2009
"Ragid" <> wrote...
> Can I control Windows Vista firewall programmatically, using the api as I
> would do with Windows XP?
> Does Windows 7 support it?


In Windows Vista, you'll want to use the API for "Windows Firewall with
Advanced Security". See -

http://msdn.microsoft.com/en-us/libr...18(VS.85).aspx

Cheers

Andrew
--
amclar at optusnet dot com dot au

 
Reply With Quote
 
Ragid
Guest
Posts: n/a

 
      05-20-2009
Thanks,
Since the msdn is not so clear I'll ask more specifically-
1. Does the "Advanced Security" version fully support the older one?
2. What about Windows 7, and my question regarding backward compatability?
Regards
Ragid
> In Windows Vista, you'll want to use the API for "Windows Firewall with
> Advanced Security". See -
>
> http://msdn.microsoft.com/en-us/libr...18(VS.85).aspx
>
> Cheers
>
> Andrew
> --
> amclar at optusnet dot com dot au
>



 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      05-21-2009
"Ragid" <> wrote ...

> Since the msdn is not so clear I'll ask more specifically-
> 1. Does the "Advanced Security" version fully support the older one?


The "Windows Firewall" API works with XP SP2 and Vista. The "Windows
Firewall with Advanced Security" API only runs on Vista, however it is much
more powerful and flexible.

You cannot control the XP firewall using the newer ""Windows Firewall with
Advanced Security" API.

If you look on Codeproject.com, I think you'll find some sample Firewall
code.

> 2. What about Windows 7, and my question regarding backward compatability?


You can read this whitepaper from Microsoft for changes in Windows 7
Firewall APIs -
http://go.microsoft.com/fwlink/?LinkId=140050

Basically Win7 provides a superset of Vista APIs. Note "WFP" == "Windows
Filtering Platform", the underlying technology behind the Windows Firewall
with Advanced Security.

The Windows 7 Forums on MSDN are the best place for Win7 programming
information.

Hope it helps,
Andrew

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
after windows firewall putting off on windows vista unable to access network and unable to on windows firewall Gurbatullah Khan Windows Vista Security 3 03-12-2008 02:59 PM
Controling spelling in other language Erik Thomsen Windows Vista Mail 2 06-20-2007 08:40 PM
Remotely Controling WMP 10 from a PDA or Notebook KBH Windows Media Player 6 05-23-2005 01:28 PM
Controling when to point to a live stream rich Windows Media Player 0 02-02-2005 09:19 AM
controling USB phone for Voip kackson Windows Vista Drivers 3 11-20-2004 12:59 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59