我们可以关闭电源并打开USB设备的电源吗 [英] Can we power off and power on USB devices

查看:81
本文介绍了我们可以关闭电源并打开USB设备的电源吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用USB类作为读写器.我可以通过编程方式关闭设备吗?设备正在从USB端口供电,而正在从USB端口供电. :)

I am using a USB class for a reader writer. can I make the device off programatically.The device is taking power from usb port that is taking its power from the usb port. :)

推荐答案

您可以使用Win32管理api来执行此操作.

看到这篇文章:
使用C#弹出USB磁盘 [
You might use Win32 management api to do this.

See this article :
Eject USB disks using C#[^]

I hope this will help you.
:rose:


这取决于设备是否为C#提供"DLL"以供导入,以便您可以调用它们并处理
it depends whether the device provide "DLL" for C# to import so that you can call them and handle


这篇关于我们可以关闭电源并打开USB设备的电源吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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