如何检测Windows中的USB设备到达 [英] How to detect USB device arrival in Windows

查看:124
本文介绍了如何检测Windows中的USB设备到达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当USB设备连接到Windows PC时,我想弹出一个消息框,并且还需要暂时停止USB服务.
为此,我认为我首先需要确定USB设备的到来.
我可以在vs.net环境中执行此操作吗?还是我需要为此编写C代码.

I want to pop up a message box, when a USB device connects to windows PC.And also I need to temporary stop the USB service.
For this , I think 1st I need to identify the arrival of a USB device.
Can I do this in vs.net environment? Or do I need to write C codes for this.

推荐答案

^ ]

使用C#弹出USB磁盘 [
Detecting USB Drive Removal in a C# Program[^]

Eject USB disks using C#[^]


这篇关于如何检测Windows中的USB设备到达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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