473,408 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to use WINDOWS FIREWALL API?

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/default.asp?url=/library/en-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/archive/tags/Nifty+Win32+tricks_2E00_/Fascinating+geek+stuff/default.aspx[/link]
Apr 1 '07 #1
2 6137
I also used this article and tried the code here

http://www.codeproject.com/useritems...e_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.
Apr 2 '07 #2
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
"m0a" <m0*@discussions.microsoft.comschreef in bericht
news:BE**********************************@microsof t.com...
>I also used this article and tried the code here

http://www.codeproject.com/useritems...e_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.

Apr 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Timothy Parez | last post by:
Hello, I've seen some front-ends for the windows firewall api (for example: http://www.codeproject.com/internet/drvfltip.asp) but I'm not familiar with C++. Now I wonder if someone can show...
0
by: Nate Hekman | last post by:
I've been trying to use WebClient to download a file from an ftp server, but kept getting this exception during the call to DownloadData: An existing connection was forcibly closed by the remote...
2
by: Lars Netzel | last post by:
Hi How do i (in vb.net) get the information if the windows firewall is turned on or off? best regards /Lars
0
by: APA | last post by:
I have a desktop application (.NET 1.1) that accesses a web service. Many users now have XP and the Windows Firewall and sometimes when the application first starts that don't properly get the app...
1
by: chris.dannemiller | last post by:
I am looking to perform the following actions 1. Detect if the Windows Firewall exists, and is enabled, if it is not the case no action will be taken. 2. See if the application and ports are...
2
by: kimster | last post by:
I was wondering if there is a way to detect if the Windows firewall is turned on for the machine in which the script is running? If so, is there a way to detect the firewall's settings? Thanks!
2
by: snowman984 | last post by:
The problem is this, all of our laptops are running windows xp with the sp2 update. When the laptops were originally setup they were joined to our domain controller. Once joined, it seems, the...
2
by: =?Utf-8?B?YnJpZ2Fkb29t?= | last post by:
windows firewall not working at all. i need to access windows firewall program but when i click icon in control panel box pops up stating "Due to an unidentified problem,windows cannot display...
2
by: buddhika1984 | last post by:
Hi, I am going to make WMI connection to a remote computer. here, i want to know which ports should be opened in windows firewall (Windows server 2008) to do that. I tested with two machines by...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.