Tools Links Login

IPCONFIG (VB)

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...

Original Author: Daniel Krusky

Inputs

This code works under Windows 3.11, Windows 95, Windows 98, Windows NT, Windows 2000. Using Visual Basic 6.0 (no service packs).

Assumptions

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)

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 97 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD1103310282000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 3,703 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.