I'm just trying to get into some serial port programming. At the moment I'm treating it exactly as I would a file, so I get a handle using CreateFile and "\\\\.\\COM1" for the filename. Then I engage in a spot of send and receive with my device, using ReadFile and WriteFile.
The problem is, although I'm able to transmit properly, any bytes I receive seem to have their most significant bit cleared. 7 bit transfer? How do I turn this off?