I'm trying to make a hardware monitizing program using C#. I have found the code to get the processor name on a Stack Overflow page. Now I want to get the GPU name, but I can't find the queries anywhere. I have looked around a lot, but because my school has really bad internet lately, 90% of all the pages don't load, so I am kinda lost at this point.
The code used:
public string GetCPUInfo()
{
ManagementObjectSearcher mosProcessor = new ManagementObjectSearcher("SELECT * FROM Win32_Processor");
string Procname = null;
foreach (ManagementObject moProcessor in mosProcessor.Get())
{
if (moProcessor["name"] != null)
{
Procname = moProcessor["name"].ToString();
}
}
lblCPUNameRdv.Text = Procname;
return Procname;
}
Where can I find all the queries to use to get the specific piece of information?
Example =
SELECT * FROM Win32_Processor
Use this link: How get GPU information in C#?
Thanks