sankramellow

I'm trying to make a wireless scanning tool kind of like the one that windows has except i want to make mine more easy also if there is a way to connect to the network that will be good aswell



Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

ReneeC

It's an easy question with a very complex answer. I've been looking at this problem for sometime now.

In XP you can Access it with WMI (System.Managament) There are lot's of bad scripting examples with vbs and a couple of .Net examples. I don't like WMI because it's it's com and you are working with objects only but the ManagementObjects should be good for it in XP. I've written code to do this in XP and it worked using VB.Net and WMI. Also the results you get will be driver dependedent. Google for RSSI and Wifi Signal Strenth. You will find the name of the Classes to look for which are something Like BSSIList. These classes contain signal strength in unknown units (vendor dependent).

XP SP2 and Vista have a native WIFI API. The XP version is sort of buggy. In Vista the bugs appear to have been fixed but it's important to know that both the XP and Vista Native WIFI API's are designed for rather challenging C++. I am working on a DLL now for this and I've put a lot of work into it.

Any way you do it, it won't be easy. It's easier with XP than Vista. Also in Vista it appears that Signal Strength is gone and has been replaced with Signal Quality.






Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

sankramellow

yeh whats the code lol





Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

Freshbru

Hey sankramellow,

Isn't it so frustrating when no-one really answers your question !

Anyway, I've been trying to get these answers myself. From what I can gather you can use WMI. See these links if your using VB.NET:

http://www.dotnet247.com/247reference/msgs/43/219074.aspx

http://www.xtremevbtalk.com/archive/index.php/t-251709.html

I found a lot of helpful advice and good links.

Heres something else I found:

How to Detect a Network Connection




Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

ReneeC

Feshbru,

This is going to driver dependent as well as OS dependent. I had similar working code on XP that wont work at all on vista. I am not sure but I believe MSNdis_80211_ReceivedSignalStrength and realted object have been moved out of vista for security reasons. But I can't say for sure because I am running a different wireless card under vista than I did in XP. Also my code failed very early before you got to the objects so WMI is different with Vista.






Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

ReneeC

The above code is very nice. Although there are 11 wireless stations near me, there are no MSNdis_80211_ReceivedSignalStrength objects reported on Vista.

I tried it on an XP Virtual machine, but since it's a virtual machine it can't see my wireless card. But based on several direct experiences, i believe what I said is correct. Wifi card related classes have been moved out of WMI and have been moved to the native WIFI API in Vista.






Re: Visual Basic Express Edition how can i get visual basic to scan for wireless networks?

Amrykid

i put this code in to a buttom, how do i make the networks appear in a list box and make the other bottom connect to the select network in the listbox.