本文介绍了编程USB传输电缆/与USB设备驱动程序对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Windows以编程方式访问USB传输电缆(例如Belkin的) ?

How do I programmatically access a USB transfer cable (such as Belkin's Easy Transfer Cable) from Windows?

我熟悉,但据我所知,在较新的设备和Windows Vista中使用它似乎很困难。

I'm familiar with libusb-win32, but from what I can tell, using that with newer devices and with Windows Vista seems iffy.

我知道可以做到这一点。如何编写与Windows轻松传送具有相同功能的代码?

I know that Windows Easy Transfer can do this. How do I write code that does the same thing as Windows Easy Transfer?

如果没有有关如何执行此操作的罐头文档,我愿意进行一些挖掘,但我不知道从哪里开始。我如何观看Windows轻松传送的操作以了解其操作方式?我看到Windows甚至在设备管理器传输电缆设备中为传输电缆提供了自己的类别。如何与这些驱动程序之一进行低级通信?

If there is no canned documentation on how to do this, I'm willing to do some digging, but I don't know where to start. How do I watch what Windows Easy Transfer is doing to find out how it does it? I see that Windows even gives transfer cables their own category in the Device Manager, "Transfer Cable Devices." How do I do low-level communication with one of these these drivers?

推荐答案

我发现Microsoft现在提供了,用于与USB设备进行简单的用户模式通信。 (必须先为该设备安装WinUSB设备驱动程序;这有点类似于libusb-win32设备驱动程序。)WinUSB在XP(SP2及更高版本)和Vista上运行。

I found out that Microsoft now offers WinUSB for simple user-mode communication with USB devices. (A WinUSB device driver must first be installed for the device; this is somewhat similar to a libusb-win32 device driver.) WinUSB works on XP (SP2 and above) and Vista.

Easy Transfer Cable使用WinUSB作为其设备驱动程序,因此我可以按照Microsoft 文档。

The Easy Transfer Cable uses WinUSB for its device driver, so I was able to communicate with it by following the example code in Microsoft's WinUSB howto document.

这篇关于编程USB传输电缆/与USB设备驱动程序对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 12:14