[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to get status of serial lines (CTS, DSR) with Windows 3.1 Communications API

Posted on 1998-03-16
3
Medium Priority
?
424 Views
Last Modified: 2013-12-03
Hi all genius. I have programmed a program in Windows 95 that uses serial ports. Under that platform, I used GetModemCommStatus to get the status of Clear To Send and Data Set Ready lines of RS-232. That function doesn't exist in 16 bits Windows. How can I do the same in Windows 3.1? I've used GetCommError but this doesn't work :(

Thanks in advance,
Jaime
0
Comment
Question by:DaThiN
  • 2
3 Comments
 
LVL 1

Expert Comment

by:JamieR
ID: 1412084
Jaime,

Use EscapeComm under Win16.
Use EscapeCommFunction under Win32.

Jamie!
0
 

Author Comment

by:DaThiN
ID: 1412085
That functions let me set or clear, for example, DTR and RTS signals. That isn't what I wanted to do. I want to know in what state (high or low, 1 or 0) is the signals CTS and DSR. Under win32 I used GetCommModemStatus. But it isn't supported by Win16.

Thanks
Jaime
0
 
LVL 1

Accepted Solution

by:
JamieR earned 60 total points
ID: 1412086
Mmmm, should have read the question. I can only suggest that you use the GetCommEventMask facility to get notification when the flags change.

Jamie
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question