diff --git a/Tinyinfo/MainWindow.cs b/Tinyinfo/MainWindow.cs index ab877a4..b393255 100644 --- a/Tinyinfo/MainWindow.cs +++ b/Tinyinfo/MainWindow.cs @@ -54,6 +54,7 @@ public void getdata(bool loop) hardwareInfo.RefreshVideoControllerList(); hardwareInfo.RefreshBatteryList(); hardwareInfo.RefreshDriveList(); + hardwareInfo.RefreshNetworkAdapterList(); // CPU Info WriteTextSafe("CPU:" + nl); @@ -243,6 +244,32 @@ public void getdata(bool loop) // Partition Count AppendTextSafe("\t\tPartition Count: " + drive.Partitions); } + + // Network Adapter Info + AppendTextSafe(nl + "Network Adapter: "); + // Create Network Adapter ID + int netadaptid = 0; + foreach (var netadapt in hardwareInfo.NetworkAdapterList) + { + // NIC ID + AppendTextSafe(nl + "\tNIC " + netadaptid + ":" + nl); + // Name + AppendTextSafe("\t\tName: " + netadapt.Name + nl); + // Product Name + AppendTextSafe("\t\tProduct Name: " + netadapt.ProductName + nl); + // Adapter Type + AppendTextSafe("\t\tType: " + netadapt.NetConnectionID + nl); + // Manufacturer + AppendTextSafe("\t\tManufacturer: " + netadapt.Manufacturer + nl); + // MAC Adress + AppendTextSafe("\t\tMAC Adress: " + netadapt.MACAddress + nl); + // Bytes sent per Second + AppendTextSafe("\t\tBytes sent per Second: " + netadapt.BytesSentPersec + nl); + // Bytes recieved per Second + AppendTextSafe("\t\tBytes recieved per Second: " + netadapt.BytesReceivedPersec); + + netadaptid++; + } } ShowInfo("");