by MicroVB INC (5 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(6 Votes)
Returns all Information about all Network devices in the computer (even Virtual ones like the PPPoE Adapter for DSL connections). Displays IP address, dns servers, wins servers, host name, etc...
Inputs
This code works under Windows 3.11, Windows 95, Windows 98, Windows NT, Windows 2000. Using Visual Basic 6.0 (no service packs).
Assumes
As this code returns everything to message boxes, it will be easy for you to modify it to use in your application.
API DeclarationsPublic Declare Function GetNetworkParams Lib "IPHlpApi" (FixedInfo As Any, pOutBufLen As Long) As Long
Public Declare Function GetAdaptersInfo Lib "IPHlpApi" (IpAdapterInfo As Any, pOutBufLen As Long) As Long
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Download IPCONFIG (VB) (3 KB)