Download VB2003
net_iphelper.zip (10 kB)

Download VB2005
net_iphelper05.zip (16kB)

Dieses Programm zeigt die Verwendung von Funktionen aus der "Iphlpapi.dll zum Ermitteln von Netzwerkinformationen.

Das Klassenmodul IpHelper.vb stellt nachfolgende Eigenschaften zur Verfügung:

HostName (String)
DomainName (String)
DnsServerList (ArrayList)
EnableDns (Bool)
EnableProxy (Bool)
EnableRouting (Bool)
NodeType (String)
ScopeID (String)
FixedInfo (Structure IPFixedInfo)
AdapterInfo (Structure IPAdapterInfo)
AdapterName (String)
Address (Byte)
AddressLength (Int32)
ComboIndex (Int32)
CurrentIPAddress (IntPtr)
Description (String)
DhcpEnabled (Bool)
HaveWinS (Bool)
Index (Int32)
MoreAdaptersAvailable (Bool)
LeaseExpires (Date)
LeaseObtained (Date)
AdapterType (String)
IpAddressList (ArrayList)
DhcpServerList (ArrayList)
GateWayList (ArrayList)
PrimaryWinsServerList (ArrayList)
SecondaryWinsServerList (ArrayList)

Die Anwendung des Klassenmoduls wird an einem kleinen Beispielprogramm gezeigt.