有人可以分解如何检测USB [英] Can someone break down how to detect usb

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

问题描述

自动检测USB插入和移除的最简单方法是什么?我知道这里有一些项目可以显示它,但要么已经过时了,要么不是什么后来

这只是应用程序自动检测USB插入和移除并显示一个消息框说明已经发生了什么

i老实说没有关于如何将其添加到我的WPF应用程序中的线索

有人可以分解如何检测USB会发生什么





what is the simplest way to auto detect USB insertion and removal i know there are projects here that show it but either are outdated or not what im after
which is just for the application to auto detect USB insertion and removal and display a message box saying which has occurred
i honestly have no clue on how to add it into my WPF application
Can someone break down how to detect USB and what happens


class USBDetection
    {
        public void USBConnected(object sender, EventArgs e)
        {
            MessageBox.Show("USB Connected");
        }
        public void USBRemoved(object sender, EventArgs e)
        {
            MessageBox.Show("USB Removed");
        }
    }





请不要链接到旧项目,好像尝试它们仍然无法让它们工作



please no links to old projects as if try them and still cannot get them to work

推荐答案

尝试

用于检测USB设备的USB库 [ ^ ]

在C#.Net 4.0中检测USB插入/删除 [ ^ ]


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

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