1. #1
    stoffer's Avatar
    Registered
    22/09/02
    Location
    Singapore
    Posts
    1,830
    iTrader
    13 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/5

    De namen van de netwerkverbindingen krijgen

    I want to get the Names of the network connections as they appear in the Network Connections Control Panel program.
    (start -> settings -> network connections)

    Ik werk met Visual Basic 6

    Code:
    Dim oWMI As Object
    Dim oSystem As Object
    Dim SQL As String
    SQL = "SELECT * FROM Win32_NetworkAdapter"
    Set oWMI = GetObject("winmgmts:").ExecQuery(SQL)
    
    For Each oSystem In oWMI
        On Error Resume Next
        List1.AddItem oSystem.NetConnectionID
    Next
    Hiermee krijg ik de namen van mijn gewone netwerkverbindingen.
    Nu zou ik nog die van mijn VPN connecties ook moeten krijgen.
    Ik denk dat dit ook mogelijk is via een of andere win32 klasse, maar ik vind die totaal niet.

    Iemand die mij kan helpen?
    (ik denk dat het iets is met "virtual network")
    Last edited by stoffer; 01-05-2004 at 22:55.
    ---
    no votes  

  2. #2
    VMax's Avatar
    Registered
    24/12/03
    Location
    Koersel
    Posts
    2,540
    iTrader
    8 (100%)
    Mentioned
    0 Post(s)
    Reputation
    1/20
    Golf
    no votes  

  3. #3
    stoffer's Avatar
    Registered
    22/09/02
    Location
    Singapore
    Posts
    1,830
    iTrader
    13 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/5
    Ik heb het zelf gevonden
    ---
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in