Get notification about windows firewall activity

MruH

Reputable
Nov 11, 2014
4
0
4,510
I am writing an application which should show the windows firewall activity (turning ON/OFF). Is there any method to get notification about windows firewall getting disabled/enabled?
 
Solution
Windows action center gets it's notification form the API call. You will need to do something similar. Why not just poll the status every 60 seconds or so?

http://en.wikipedia.org/wiki/Action_Center

Third-party anti-virus, anti-spyware and personal firewall software vendors primarily register with Action Center through the WMI provider. Windows Vista added a new set of API to let programs retrieve the aggregate health status of Action Center, and to receive notifications when the health status changes.
Hey there, MruH!

Here are some links that might help you configure Windows Firewall with Advanced Security however you want:
http://technet.microsoft.com/en-us/library/dd421717%28v=ws.10%29.aspx
http://technet.microsoft.com/en-us/library/cc947788%28v=ws.10%29.aspx
http://blogs.technet.com/b/networking/archive/2010/12/16/disabling-firewall-alerts-in-the-action-center.aspx
Also here are some pretty good suggestions about apps for prompting on outbound traffic:
http://superuser.com/questions/217551/how-can-i-configure-the-windows-7-firewall-to-prompt-me-on-outbound-traffic

I hope you find this information useful! Good luck! :)
SuperSoph_WD
 

MruH

Reputable
Nov 11, 2014
4
0
4,510


Thank you for the reply.
I read all the links you have mentioned. But this is not what I am looking for.
My requirement is my application should get notified whenever user turns on/off windows firewall.
I am doing this for windows vista and windows xp.

Is there any API to achieve this? Is it related to action center i.e. I should first register my application to action center and then it will be able to receive notification about windows firewall on/off activity?
 
Hi again,

I am truly out of options here, MruH! :(
(+^1) I'd go with what Hawkeye22 suggested in hopes to find the solution.
The only thing that pops in my mind is to maybe research third party software apps that might be able to achieve this.

Sorry I couldn't be more helpful. Good luck!

SuperSoph_WD
 

MruH

Reputable
Nov 11, 2014
4
0
4,510


Thanks for the reply.
I read the provided links. Yes there are API for checking firewall status or to enable/disable firewall.
My requirement is different.
I would like to get notification when user turns on/off windows firewall.
e.g.
My application will be running at background. Whenever user turns on/off windows firewall my application should get notified about that. I will show the message box according to notified firewall status.
This is what I want to do.
 
Windows action center gets it's notification form the API call. You will need to do something similar. Why not just poll the status every 60 seconds or so?

http://en.wikipedia.org/wiki/Action_Center

Third-party anti-virus, anti-spyware and personal firewall software vendors primarily register with Action Center through the WMI provider. Windows Vista added a new set of API to let programs retrieve the aggregate health status of Action Center, and to receive notifications when the health status changes.
 
Solution