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
Thanks in advance,
Jaime
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
Thanks
Jaime
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use EscapeComm under Win16.
Use EscapeCommFunction under Win32.
Jamie!