After 25 years I thought I would dust off the grey cells and try Lazarus to read a COM port via windows API calls (I used to dabble with Delphi 5).
I'm trying to use 'CreateFile' but the Lazarus compiler cannot find it so I clearly have not the right 'uses' entry. I am 73 and rather stuck in the assembler/FORTRAN world of the 60s and 70s, so please bear with me!