

It is really a device doctor for your windows system. Opening a Port The CreateFile function opens a communications port. It also makes extensive use of synchronization methods to facilitate communication between threads. The sample employs a few different data heaps for memory management. It uses three threads in its implementation: a user interface thread that does memory management, a writer thread that controls all writing, and a reader/status thread that reads data and handles status changes on the port. The sample included with this article, MTTTY: Multithreaded TTY (4918.exe), implements many of the features discussed here. Furthermore, this article does not discuss some of the configuration functions, such as GetCommProperties. This will allow seamless integration with the other TAPI-enabled applications that a user may have. A production application that works with modems and makes telephone calls should implement these features using the TAPI interface. TAPI does deserve mention, however, in that it very nicely implements modem interfacing and call controlling. (36 printed pages) Introduction This article does not discuss TAPI.


In other words, get your feet wet before diving in head first. Readers unfamiliar with general Windows programming practices should learn some of the fundamentals of general Windows programming before taking on serial communications. In addition, a basic familiarity of the heap functions is useful to fully comprehend the memory management methods used by the sample, MTTTY, included with this article.Īpplication programming interfaces (APIs) that control user interface features of windows and dialog boxes, though not discussed here, are useful to know in order to fully comprehend the sample provided with this article. This article assumes you are familiar with the fundamentals of multiple threading and synchronization in Windows. Contents Overview This article provides a foundation for learning about serial communications in Windows. (35 printed pages) for this technical article. The Multithreaded TTY (MTTTY) sample is included with this article. Allen Denver Microsoft Windows Developer Support DecemSummary: Learn about serial communications in Microsoft Windows.
