Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a category "Biometric Devices" such that one could enumerate and list all the biometric devices attached to a system, something like listing all video and audio devices.

Thanks.
Posted
Comments
JF2015 25-Nov-10 8:06am    
No.

1 solution

Here is a way to retrieve all sound devices:

ManagementObjectSearcher objSearcher = new ManagementObjectSearcher(
           "SELECT * FROM Win32_SoundDevice");

ManagementObjectCollection objCollection = objSearcher.Get();

foreach (ManagementObject obj in objCollection)
{
  foreach (PropertyData property in obj.Properties)
  {
    Console.Out.WriteLine(String.Format("{0}:{1}", property.Name, property.Value));
  }
}
 
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