Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DCB doc error?

0 views
Skip to first unread message

Ziv Caspi

unread,
Aug 8, 1999, 3:00:00 AM8/8/99
to
The documentation for the DCB structure states for fRtsControl:

"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

Chris Doran

unread,
Aug 10, 1999, 3:00:00 AM8/10/99
to
In article <37ad99e1...@news.netvision.net.il>,

zi...@netvision.net.il (Ziv Caspi) wrote:
> The documentation for the DCB structure states for fRtsControl:
>
> "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?

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.

Ari Lukumies

unread,
Aug 12, 1999, 3:00:00 AM8/12/99
to
Chris Doran wrote:
>
> In article <37ad99e1...@news.netvision.net.il>,
> zi...@netvision.net.il (Ziv Caspi) wrote:
> > The documentation for the DCB structure states for fRtsControl:
> >
> > "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?
>
> 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.

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

0 new messages