"Specifies the RTS (request-to-send) flow control. If this value is
zero, the default is RTS_CONTROL_HANDSHAKE.[...]"
However, WINBASE.H has:
#define RTS_CONTROL_DISABLE 0x00
#define RTS_CONTROL_ENABLE 0x01
#define RTS_CONTROL_HANDSHAKE 0x02
#define RTS_CONTROL_TOGGLE 0x03
How can the same value (0) stand both for RTS_CONTROL_DISABLE and
RTS_CONTROL_HANDSHAKE?
---------------------------------------------
Ziv Caspi
zi...@netvision.net.il
You refer, I guess, to Allen Denver's article "Serial
Communications in Win32" at
http://msdn.microsoft.com/library/techart/msdn_serial.htm
Experiment shows that winuser.h is right for fRtsControl
-- 0 is the same as RTS_CONTROL_DISABLE, and the article is wrong.
It seems that this otherwise excellent article is not
without errors. The other one I have found, in fAbortOnError in
the same table, gives a non-existent return code for an
aborted read or write. The correct code is
ERROR_OPERATION_ABORTED (995).
Chris
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
This same mistake appears in the online help for Win API, structure DCB,
that comes with MSVC 5, at least.
AriL
--
Whom computers would destroy, they must first drive insane.
Homepaged at http://www.angelfire.com/or/lukumies