连接并以编程方式断开USB设备 [英] Connect and DisConnect usb devices programmatically

查看:640
本文介绍了连接并以编程方式断开USB设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要连接和断开USB设备,如闪存驱动器等的的程序化的方式,与出未插头重新插上设备。 有没有办法做到在.NET,C#窗口应用程序。??? 谢谢advace

I need to connect and disconnect the usb devices such as flash drive, etc. in programmatical manner,with out un-plug and re-plug the device. Is there any way to do in .net,c# window application.??? Thanks in advace

推荐答案

您可能想看看一些相关的问题:

You might want to look at some related questions:

  • Safe remove USB-Drive using Win32 API?
  • Windows - Power off an usb device in software

无论是在回答中提到的办法很容易翻译到C#。

Both of the approaches mentioned in the answers are readily translatable to C#.

这篇关于连接并以编程方式断开USB设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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