From b2b3a9350a0111ae34a0cbba31a3576684b06966 Mon Sep 17 00:00:00 2001 From: Lion-Craft Date: Fri, 13 Oct 2023 11:50:59 +0200 Subject: [PATCH 1/2] Added Network Adapter info --- Tinyinfo/MainWindow.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Tinyinfo/MainWindow.cs b/Tinyinfo/MainWindow.cs index ab877a4..443a645 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(""); From 369b91b1b43147dd608ddc930e2329df54a4a2bd Mon Sep 17 00:00:00 2001 From: Lion-Craft Date: Fri, 13 Oct 2023 11:52:09 +0200 Subject: [PATCH 2/2] Removed stray "+" --- Tinyinfo/MainWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tinyinfo/MainWindow.cs b/Tinyinfo/MainWindow.cs index 443a645..b393255 100644 --- a/Tinyinfo/MainWindow.cs +++ b/Tinyinfo/MainWindow.cs @@ -266,7 +266,7 @@ public void getdata(bool loop) // 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 + ); + AppendTextSafe("\t\tBytes recieved per Second: " + netadapt.BytesReceivedPersec); netadaptid++; }