I am making my own hardware monitor like CPU-Z, I am trying to acquire my dedicated graphics card information, but it only returns my processors integrated graphics.
public string GetPart(string part)
{
ManagementObjectSearcher searcher = new ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM " + "Win32_Videocontroller");
foreach (ManagementObject mobj in searcher.Get())
{
partval = mobj["Name"] as string;
}
return partval;
This returns Intel(R) UHD Graphics 630
For other applicable parts like hard drive, fans, or even the rare case of multiple processor sockets, how would I go about indexing these?
I have had some problems with this laptop revolving around my gpu, it could be possible that it 'isn't detected' as Task Manager does not show GPU1 ever being used, and the performance tab shows absurdly low usage even when running a game like WoW on max settings, especially on a laptop.