You can use DosDevIOCtl to control the data parameters (bit rate, stop bits, parity, and data bits) of a communications port and to get the status of the COM port. The IOCTL_ASYNC category is used for communications-port control. The ASYNC_SETBAUDRATE function sets the COM port transmission rate. The ASYNC_GETCOMMSTATUS returns the COM port status-byte.


[Back] [Next]