How to use WINDOWS FIREWALL API?

G

Guest

Hello!

Could someone kindly show me how to use WINDOWS FIREWALL API in visual basic
6.0

Some snippets of code may help me with some basic documentation.

Lets assume i want to block a port using the firewall api provided by
windows, how would i do it using visual basic.

I am currently trying to develop a firewall, but as i am a newbie programmer
to visual basic i am not able to figure anything out. I am also trying to
figure out usage of EASYSEC FIREWALL SDK, but i don't know how to use it with
visual basic, some info on that would also help me.

Thanks.

Documentation read :

[link]http://msdn.microsoft.com/library/d...-us/ics/ics/using_windows_firewall.asp[/link]

[link]http://msdn2.microsoft.com/en-us/library/aa366415.aspx[/link]

and

some part of this blog explaing some concepts.

[link]http://blogs.msdn.com/larryosterman...0_/Fascinating+geek+stuff/default.aspx[/link]
 
G

Guest

I also used this article and tried the code here

http://www.codeproject.com/useritems/enable_disable_firewall.asp

but i keep on getting errors....

I did this am i correct?

First i opened a vb project, then clicked the project then selected the
references tab and added the Hnetcfg.dll. After this when i try to add
NetFwTypeLib from the components(COM), it wont show up!!!

Am i doing some mistake?

please guide me. Thanks.
 
C

Cor Ligthert [MVP]

Moa,

As this newsgroup is the last sample special for VB.Net a quiet different
program language from VB6. Those newsgroups you find by instance with a name
as

microsoft.public.vb.general.discussions.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top