简体   繁体   English

以编程方式连接和断开USB设备

[英]Connect and disconnect USB devices programmatically

I need to connect and disconnect USB devices, such as flash drives, in a programmatical manner, without unplugging and re-plugging the device. 我需要以编程方式连接和断开USB设备(例如闪存驱动器),而无需拔出和重新插入设备。

Is there any way to do it in a C# Windows application? 在C#Windows应用程序中有什么方法可以做到这一点?

You might want to look at some related questions: 您可能要看一些相关的问题:

Both of the approaches mentioned in the answers are readily translatable to C#. 答案中提到的两种方法都可以轻松转换为C#。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM