VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

IPCONFIG (VB)

MicroVB INC  (5 Submissions)   Internet/HTML   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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 Declarations
Public 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)

Rate IPCONFIG (VB) (6(6 Vote))

Download IPCONFIG (VB)

IPCONFIG (VB) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters