Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

28 network adapter info #50

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Tinyinfo/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public void getdata(bool loop)
hardwareInfo.RefreshVideoControllerList();
hardwareInfo.RefreshBatteryList();
hardwareInfo.RefreshDriveList();
hardwareInfo.RefreshNetworkAdapterList();

// CPU Info
WriteTextSafe("CPU:" + nl);
Expand Down Expand Up @@ -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("");
Expand Down