[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 most of the time on 64 bit system.
Can anybody guide me is this a problem with the api definition, firmware or else.