Wednesday, October 18, 2006

How to add the applciation to FIREWALL ALLOW

1. ONE PAGE ABOUT THE COMMAND LINE ON MSDNhttp://technet2.microsoft.com/WindowsServer/en/library/d3cbd31c-6e01-415f-9d7a-d0cbc73baabd1033.mspx?mfr=true
netsh firewall add allowedprogramadd portopening [ protocol = ] TCPUDPALL [ port = ] 1-65535 [ name = ] name [ [ mode = ] ENABLEDISABLE [ scope = ] ALLSUBNETCUSTOM [ addresses = ] addresses [ profile = ] CURRENTDOMAINSTANDARDALL [ interface = ] name ]
2.
.Where do I get netfw.h? http://blogs.msdn.com/larryosterman/archive/2004/08/11/212975.aspx
b. one sample http://www.cppblog.com/davyy/archive/2006/07/24/10410.html
c. u should add #define _WIN32_DCOM before #include

d.one sample on MSDN it implment by C++
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ics/ics/windows_firewall_reference.asp
USE C#/VB.NEThttp://msdn.microsoft.com/security/productinfo/XPSP2/networkprotection/firewall_devimp.aspx

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]

Scrape It
Free Hit Counters
Scrape It