I need to develop an winform app which reads attached cameras and microphones names from the system and displays it with radioboxes so that the user can select an attached microphone and camera and proceed to the next form where video conference happens….!!
But, I am not able to read attached hardware names of the system..Please suggest some way..!!
There’s an article on CodeProject that might help – Retrieving Hardware Information in C#:
WMI refers to Windows Management Instrumentation, and the majority of the code will use the
System.Managementnamespace.This sample I wrote will display a list of sound devices on your PC:
You’ll want to look at WMI Query Samples to help you figure out how to find the devices you’re looking to identify. Microsoft also has a WMI Code Creator utility that might help: