Serial Port Programming Tutorial using Win32 API on x86_64 Systems
Rahul.Sreedharan
23 June 2025

This tutorial teaches you to program your Windows PC's Serial Port (aka COM Port) to communicate with an external peripheral like data acquisition boards, USB GPIO Boards, Relay boards, embedded computers like Arduino
Controlling DTR and RTS pins of Serial Port using Win32 API and C/C++
Rahul.Sreedharan
23 June 2025
In the previous tutorial we learned about communicating with the serial port (reading and writing) using Win 32 API.
In this tutorial,
we will look into another function that will let us control two more pins, RTS and DTR.
Unlike RXD and TXD pins that are used for sending and receiving data,