Hi avra,
thank you for your additional advice.
As far as I can remember, I already tried
directio/giveio.sys/totalio.sys, gwiopm.sys, inout32.dll and inpoutx64.dll, userport.exe/userport.sys, WinIo v3.0, port.dll .
At least WinIo and inpoutx64.dll are reported to work under 64 Bit Windows, but they don't work on my Windows 7 Home Premium 64 Bit PC.
I'll check the other tools that you listed, whether one of those does the job.
I did not try to access I/O-ports concurrently via userport and programs running under ntvdm. I just observed that all old 16 Bit Programs (e.g. those compiled with Turbo Pascal 6 & 7 under Windows XP and TP6 & TP7 themselves are blocked when userport.sys has been started. They do not respond to keyboard or mouse with the exception of the close-window-button, just "hang" in the entry display.
I am using Windows 32-Bit (XP on 3 PCs and Win 7 on a netbook), Linux Mint 20 on a laptop and Windows 7 64 Bit on a quadcore desktop PC. I have no (serious) problems to access the Parallel port with userport.sys under Windows XP with programs written with FPC. I just want to access the parallel just as well on my "work-horse", the quadcore 64-Bit PC.
The initial question for the serial unit arose from my arrempt to communicate with a µP-board via V24, possibly as a work-around for the denied access to the parallel port.
I am using one of those ubiquitous PCI Parallel-Port boards from Sunix. They supply certified drivers for use as Printer Port (LPTxx). But these drivers do not allow transparent control or read-out of the data/control/status-port bit values. It is in principle all there, but you don't get it.
Printing is done on this PC via USB. The sytem does not use the parallel port if I do not define it as a another printer port. So there is no danger of collision with other processes on the PC. It is no security leak as I am the only user. So no reason at all to deny access. Sunix might as well supply a certified driver to access the ports in a way as was possible during DOS-times.
Regards
Kai
Addendum to MarkMLI:
The example program ends with "Waiting for an answer" (waits for a CR from the other end of the V24 connection). It did not wait after my first attempt to run that program because nothing was configured nor connected. In the meantime I have connected a µP-board, "harmonized" the V24-parameters on both sides and now it works fine. Thank you.