Hi, Turbo Pascal means DOS programming, as for windows, it is Delphi, I wonder if old sofware can recognise the new parallel port configuration that enables bi directional communication.
Serial port is easier.
If DOS , then you can make a PCI card and give it a memory address, use peek and poke commands to to read status and change it...