libusb

Problem reading the data from USB device

[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); I am using the api to read async data from usb device, it work most of the time in 32 bit OS. But fails m...