[comp.sys.ibm.pc] DOS Serial Port Driver?

hgm@beta.UUCP (Harry McGavran) (04/16/88)

I am sure this has been requested before, so I apologize to those
offended by repeat requests.

I am looking for a a set of routines either in or compatible with
Microsoft C versions 4.0 or 5.0, that will provide interrupt driven
i/o with asynchronous communications adapters. Handling both
COM1: and COM2: is desirable. At the application level, four functions
are needed, initialize the port (open it, with specified speed, parity,
etc.), read, write, and close the port. Error returns from these
functions would be nice, to try to do reasonable things when errors
arise. The buffer size for the read and write for each port
should be specified in the initialize.

I have perused SIMTEL20 a bit. There are several (at least) routines
there that would require a fair amount of hacking to get the above
interfaces. There may be some there that I missed that are closer
to what I need.

For this appilication, a resident device driver that is not part
of the program is NOT what is desired. While it would be appealing
to have a real device driver for the COM ports for any program
to use, other applications will be run that want to do their
own thing with the COM ports, without regard to any services
this program will provide.


Surely someone has done this. If anyone has any suggestions
please E-mail me at:

hgm@LANL.GOV
{cmcl2 ihnp4}!lanl!hgm

Thanks for any help!