HardwareLib (Miscellaneous)

HardwareLib is a .NET Library that offers a set of functions to get information about your hardware such as motherboard, CPU , RAM ,Graphics Card, Network Adapter, CD/DVD Drives and Hard Drives…
You can get device details (manufacturer, model, serial number, Name…. etc)
HardwareLib use WMI to obtain information about installed Device please see the screenshot

How to use

CPU Class
HardWareInfo.Cpu cpu = new Cpu(Cpu.CpusList0);

MessageBox.Show(cpu.GetName());

HDD Class

To get more information about partitions you should use LogicalDisk class

foreach (string str in Hdd.DrivesList)
     {
         hdd.setDeviceID(str);
comboBox1.Items.Add(hdd.Caption);
{
   LD.setDeviceID(str)
               comboBox2.Items.Add(hdd.Caption);
         }
}
foreach (string str in LogicalDisk.LogicalDiskList)

If you need more help you can contact me…

Download HardwareLib (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *