打开/关闭usb灯 [英] turn on/off usb lamp

查看:161
本文介绍了打开/关闭usb灯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i希望通过vb.net按钮开启/关闭usb灯...

i认为我必须转向打开/关闭这个USB端口的电源....


我怎么能这样做?


亲切的问候

解决方案

" Zabby" <杂*** @ discussions.microsoft.com> schrieb:

我想通过vb.net按钮开启/关闭usb灯......
我想我必须打开/关闭这个usb的电源端口....




查看USB灯的制造商是否提供了一个允许

关灯的SDK。 />

-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>


如果没有? :)


" Herfried K. Wagner [MVP]"写道:

" Zabby" <杂*** @ discussions.microsoft.com> schrieb:

我想通过vb.net按钮开启/关闭usb灯......
我想我必须打开/关闭这个usb的电源端口....



检查USB灯的制造商是否提供了一个允许
关闭灯的SDK。

-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http://classicvb.org/petition/> ;



看起来你必须为此进行一些设备驱动程序级编程。


无论如何,似乎有一种产品可以捕获原始USB数据.....>
http://www.hhdsoftware.com/usbmon.html.My 猜测你将不得不做类似的东西。


另一个想法是,如果Windows

识别它,您可以尝试禁用/启用该设备。我不确定使用什么API,但我的猜测是有一套

的Windows API / DD API可以让你这样做。


-

Rgds,

Anand

VB.NET MVP
http://www.dotnetindia.com

" Zabby"写道:



我想通过vb.net按钮开启/关闭usb灯...
我认为我必须打开/关闭这个USB端口的电源....

我怎么能这样做?

亲切的问候


hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards

解决方案

"Zabby" <Za***@discussions.microsoft.com> schrieb:

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....



Check out if the manufacturer of the USB lamp provides an SDK which allows
turning off the lamp.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


and if not? :)

"Herfried K. Wagner [MVP]" wrote:

"Zabby" <Za***@discussions.microsoft.com> schrieb:

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....



Check out if the manufacturer of the USB lamp provides an SDK which allows
turning off the lamp.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>



Looks like you have to do somekind of device driver level programming for this.

Anyway there seem to be a product that traps raw USB data at
http://www.hhdsoftware.com/usbmon.html.My guess is that you will have to do
something similar.

Another idea is you can try and disable/enable the device, if Windows
recognizes it. I am not sure what API to use, but my guess is that there is a
set of Windows API/DD API which will allow you to do it.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Zabby" wrote:

hi,

i want to turn on/turn off a usb lamp via a vb.net button...
i think i would have to turn on/turn off the power for this usb port....

how could i do this?

kind regards



这篇关于打开/关闭usb灯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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