https://bugs.winehq.org/show_bug.cgi?id=49752
--- Comment #20 from amad4wine2020@gmail.com --- (In reply to Roman Pišl from comment #18)
I don't know how important is this application for you. A proper fix would require modifications to both Wine a Linux. Is that worth the effort?
According to the "D2XX Programmer's Guide" (https://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer%27s...), there are two functions that can take the EV_RXFLAG (one of them seems to be Windows specific): FT_W32_SetCommMask (Supported Operating Systems: Linux, Mac OS X, Windows) FT_W32_GetCommMask (Supported Operating Systems: Windows)
Does it make sense to try adopt the 'alternative driver' - D2XX for FTDI devices and a shim layer between the FTDI's Linux D2XX driver and application running under Wine? (https://github.com/brentr/wineftd2xx)
If there is a way to use VCP through D2XX driver (emulate a VCP interface through it), then maybe this one and other similar applications could work (probably only for FTDI's chips, quite common anyway).