Click here to Skip to main content
14,661,175 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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));
  }
}
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100