home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4255 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.2 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: joe2@vnet.ibm.com
  3. Message-ID: <19920817.033541.870@almaden.ibm.com>
  4. Date: Mon, 17 Aug 92 12:28:09 FST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: Help with os/2 v2.0 comm ioctls needed
  7. Reply-To: <joe2@vnet.ibm.com>
  8. Disclaimer: This posting represents the poster's views, not those of IBM
  9. News-Software: UReply 3.0
  10. References: <n!9m8yk.feustel@netcom.com>
  11. Lines: 22
  12.  
  13. In <n!9m8yk.feustel@netcom.com> David Feustel writes:
  14. >I'm trying to initialize the com2 port with DosDevIOCtl calls.
  15. >I keep getting error 87 - invalid parameter but I don't spot the
  16. >error.
  17. >
  18. >Can someone send me an example of the ioctl calls
  19. >- initializing the baud rate,
  20. >- setting the line parameters (data bits, parity and stop bits)
  21. >- setting the modem control bits?
  22. >
  23. >The tech library documentation is pretty skimpy on this topic.
  24. >
  25. >Thanks.
  26. >--
  27. I don't know if this is your problem, but there is
  28. a bug in the documentation: to have DosDevIOCtl prototyped,
  29. you need INCL_DOSDEVICES and not INCL_DOSPROCESS.
  30. I strongly recommend that you always compile with /Kb to
  31. find all non-prototyped functions...
  32. IO CTLs are documented in "Physical Device Driver Reference".
  33.  
  34. -Joel Armengaud
  35.