使用winusbnet库通知USB到达和删除C# [英] Using winusbnet library for notification of USB arrival and removal C#

查看:598
本文介绍了使用winusbnet库通知USB到达和删除C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在git中使用winusbnet库为我的Windows窗体应用程序。任何人都可以帮助我使用这个库来通知USB的突然变化(到达/删除)。我有4个窗口。我不是在说错误。我阅读了维基文档,但没有关于通知程序的信息。我的问题是当我突然断开USB与PC的连接时,它应该从我的应用程序也断开连接inbetween如果我插入它应该自动连接到。我需要弹出一个告诉USB连接或断开连接。因为我使用这个库来传输数据,识别设备等,如果有人使用过这个请帮助。



我尝试过:



尝试使用以下库:



GitHub - madwizard-thomas / winusbnet:WinUSB .NET包装库 [ ^ ]

推荐答案

A.使用GitHub中的任何代码:



1.查看当前未解决的问题...您可能会发现您正在处理已知的事情。



2.阅读/研究Wiki的文档:WinUSB在Wiki中有以下链接[ ^ ]:



在线图书馆参考

文档

INF模板



3.如果您认为其代码导致错误,请考虑在该Git存储库上引发问题清楚地描述..



B.你需要向我们提供更多关于你的问题的信息:



但与通知者混淆了。这是什么意思:有错误吗?



我有4个窗口。好的,他们是什么;他们做什么。手柄?



通过编辑原始帖子发布更多信息。请记住,我们无法理解你的想法。
A. For using any code from GitHub:

1. review the current open issues ... you may find you are dealing with something that is already known.

2. read/study the documentation ion the Wiki: WinUSB has the following links in the Wiki [^] :

Online library reference
Documentation
INF template

3. Consider raising an issue on that Git repository if you think there is an error caused by its code that you can describe clearly..

B. You need to give us much more information about your problem:

"But got confused with notifier." What does that mean: was there an error ?

"I have 4 windows." Okay, what are they; what do they do.handle ?

Post more information by editing your original post. Remember, we can't read your mind.


这篇关于使用winusbnet库通知USB到达和删除C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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