检测设备是否插入系统 [英] detecting a device if plugged to the system

查看:116
本文介绍了检测设备是否插入系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,该应用程序必须检测生物特征设备是否插入并显示该设备已检测到的消息.我需要用c#或java中的代码来检测设备

I am developing an application which has to detect the biometric device if plugged and show the message that device detected. I need the code in c# or java for detecting a device

推荐答案

因为您没有说任何一种方式...

如果是USB设备,则可以截取适当的Windows消息,通知系统已插入新设备.这是我使用google找到的CodeProject文章.

枚举和自动检测USB驱动器 [
Since you didn''t say one way or the other...

If it''s a USB device, you can simply intercept the approprioate windows message that notifies the system that a new device is plugged in. Here''s a CodeProject article that I found using google.

Enumerate and Auto-Detect USB Drives[^]


这篇关于检测设备是否插入系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆