Topic:   How to get Processor Id using CSharp
Oct 20, 2020 06:08 1 Replies 891 Views ALLINO

How to get processor Id using CSharp 

Prev Next
Topic Replies (1)
  1. 1
    idnkx user


    First add the reference System.Management from COM tab in your project.

    Here is the Example Code:
    using System.Management;
    ManagementObjectSearcher mo = new ManagementObjectSearcher("select * from Win32_Processor");
    foreach (ManagementObject mob in mo.Get())
    catch (Exception ex)
    // handle exception

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect