枚举生物识别设备? [英] Enumerating Biometric Devices?
本文介绍了枚举生物识别设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在生物识别设备"类别,以便可以枚举并列出连接到系统的所有生物识别设备,就像列出所有视频和音频设备一样.
谢谢.
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.
推荐答案
这里是一种检索所有声音设备的方法:
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));
}
}
这篇关于枚举生物识别设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文