🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #880

Re: Help with os/2 v2.0 comm ioctls needed

#880
From: joe2
Date: Mon, 17 Aug 1992 12:28
22 lines
1233 bytes
In <n!9m8yk.feustel@netcom.com> David Feustel writes:
>I'm trying to initialize the com2 port with DosDevIOCtl calls.
>I keep getting error 87 - invalid parameter but I don't spot the
>error.
>
>Can someone send me an example of the ioctl calls
>- initializing the baud rate,
>- setting the line parameters (data bits, parity and stop bits)
>- setting the modem control bits?
>
>The tech library documentation is pretty skimpy on this topic.
>
>Thanks.
>--
I don't know if this is your problem, but there is
a bug in the documentation: to have DosDevIOCtl prototyped,
you need INCL_DOSDEVICES and not INCL_DOSPROCESS.
I strongly recommend that you always compile with /Kb to
find all non-prototyped functions...
IO CTLs are documented in "Physical Device Driver Reference".

-Joel Armengaud
Technical Details
Message-ID: <19920817.033541.870@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
References: <n!9m8yk.feustel@netcom.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
From: joe2@vnet.ibm.com
Message-ID: <19920817.033541.870@almaden.ibm.com>
Date: Mon, 17 Aug 92 12:28:09 FST
Newsgroups: comp.os.os2.programmer
Subject: Re: Help with os/2 v2.0 comm ioctls needed
Reply-To: <joe2@vnet.ibm.com>
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
References: <n!9m8yk.feustel@netcom.com>
Lines: 22