Link to home
Start Free TrialLog in
Avatar of DaThiN
DaThiN

asked on

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
Avatar of JamieR
JamieR

Jaime,

Use EscapeComm under Win16.
Use EscapeCommFunction under Win32.

Jamie!
Avatar of DaThiN

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of JamieR
JamieR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial