Using the serial ports on Windows can be a bit complex. This documentation section will, in time, explain all about the use of DCBs, CreateFile(), port events, and asynchronous serial communication.