title: Reading the data from USB device using libusb
body: <pre><code>[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);
  </code></pre>
  
  <p>I am using the API to read async data from USB device, it works most of the time in 32 bit OS. But fails most of the time on 64 bit system.</p>
  
  <p>Can anybody guide me if this is a problem with the API definition, firmware or something else?</p>