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

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
DaThiNAsked:
Who is Participating?
 
JamieRConnect With a Mentor Commented:
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
 
JamieRCommented:
Jaime,

Use EscapeComm under Win16.
Use EscapeCommFunction under Win32.

Jamie!
0
 
DaThiNAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.