Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > How to list all Internet connections before connecting


Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2009, 06:11 AM
bluemoon4ever bluemoon4ever is offline
Newcomer
 
Join Date: Jul 2009
Posts: 1
Default How to list all Internet connections before connecting


Hi all

i have created a program that checks for an available internet connection, then when one is available it connects via the default connection, which is normally the LAN (wireless) connection.

My question is this ... is it possible to get a list of ALL available possible connections on a pc before connecting, such as LAN, ADSL Dialup etc.

I have a Mobile Broadband Dongle and Wireless enabled on my computer at the moment and i want to be able to choose which one the program connects with, such as listed in Windows XP Start Menu "Connect to" option

I am currently using the InternetGetConnectedStateEx api, but that only works when a connection is already made.

thanks in advance

Last edited by bluemoon4ever; 09-29-2009 at 06:29 AM.
Reply With Quote
  #2  
Old 10-18-2009, 02:31 AM
tintino tintino is offline
Centurion
 
Join Date: Sep 2003
Location: usa (east)
Posts: 170
Default

Your question is a bit confusing.
Which one are you attempting:

1. List all available Network Interfaces (ex: all network adapters installed in pc)?
2. List all available (in range) wireless networks, as detected by your wireless network adaptor.


For 1. there's a lot on this forum (for example here)

For 2. I've seen it somewhere... using WMI .. try google WMI WiFi
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->