Click here to Skip to main content
16,017,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a winapp application in c# which shows the device manager like list. I am able to get the devices of the computer but dnt know how to get the icons with respective to device.
Please guide me with a example how to get icons with device information like device manager in windows.

What I have tried:

SelectQuery query = new SelectQuery("Win32_PnPSignedDriver");

ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
ManagementObjectCollection drivers = searcher.Get();

foreach (ManagementBaseObject driverObject in drivers)
{
ManagementObject driver = (ManagementObject)driverObject;
string version = driver["DriverVersion"].ToString();
}
Posted
Updated 11-Aug-16 2:42am

1 solution

See the following MSDN article:
Device information properties[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900