I checked it out. Have you tested it yet? I read through it and I don't
see any reason why it shouldn't work. 8N1 9600 are valid parameters for
parallel as well as serial ports I think. So I wouldn't assume this code
doesn't work.
And you'll notice the handles are appropriate in the two spots -
hParallelPort instead of hSerialPort, and you can see above where these
file handles get opened - hParallelPort = CreateFile(...)
So I would say, pretend it works and see if you can get it, and report
back if you do have a problem.
And congrats - directly programming the I/O is quite an accomplishment!