Advertisement

05.21.2008 at 03:43AM PDT, ID: 23420225
[x]
Attachment Details

Identify if a networki nterface is wireless

Asked by AWestEng in .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: VS 2005: VB.Net

Using this code it's possible to get information about the network.

What I need to do is, check if the network interface is a wireless interface.

Is this possible?

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
Private Sub GetNetworkInformation()
        Dim IP As String = String.Empty
 
        '// Only proceed if there is a network availible
        If NetworkInterface.GetIsNetworkAvailable Then
 
            '// Get the set of all NetworkInterface objects for the local machine
            Dim interfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces
 
            '// Iterate through the interfaces
            For Each ni As NetworkInterface In interfaces
                m_InterfaceNames.Add(ni.Name)
                '// Iterate through the current interface (ni)
                For Each addr As UnicastIPAddressInformation In ni.GetIPProperties.UnicastAddresses
                    m_IpAddresses.Add(addr.Address)
                Next
            Next
 
        End If
    End Sub
[+][-]05.21.2008 at 03:58AM PDT, ID: 21613652

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: VS 2005: VB.Net
Sign Up Now!
Solution Provided By: TimCottee
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.21.2008 at 07:31AM PDT, ID: 21615451

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 07:34AM PDT, ID: 21615489

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628