【发布时间】:2010-10-27 13:40:56
【问题描述】:
[DllImport("winusb.dll", SetLastError = true)]
internal static extern Boolean WinUsb_ReadPipe(IntPtr InterfaceHandle, Byte PipeID,
ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr Overlapped);
我正在使用 API 从 USB 设备读取异步数据,它大部分时间都在 32 位操作系统中工作。但在 64 位系统上大部分时间都失败了。
如果这是 API 定义、固件或其他方面的问题,谁能指导我?
【问题讨论】:
-
我在 Windows 上使用 libusb 时遇到了很多挑战。我可能会建议使用more direct control of USB in C#/.NET...