home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4780 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.0 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: joe2@vnet.ibm.com
  3. Message-ID: <19920907.023525.581@almaden.ibm.com>
  4. Date: Mon, 7 Sep 92 11:34:29 FST
  5. Newsgroups: comp.os.os2.programmer
  6. Subject: Re: DosDevIOCtl
  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: <1992Sep7.014647.4906@news.Hawaii.Edu>
  11. Lines: 30
  12.  
  13. In <1992Sep7.014647.4906@news.Hawaii.Edu> Dave Tholen writes:
  14. >I have a 16-bit OS/2 application that I would like to recompile for 32-bit
  15. >OS/2.  This application currently uses KbdCharIn to retrieve keystrokes
  16. >from the keyboard.  There is no 32-bit version of KbdCharIn, though it
  17. >appears that DosDevIOCtl, Category 4, Function 74H, "Read Character Data
  18. >Records" may be a satisfactory substitute.
  19. >
  20. >I have documentation for the 16-bit DosDevIOCtl in the form of Ray Duncan's
  21. >book and the include files for the 16-bit compiler, but all I have at the
  22. >moment for the 32-bit DosDevIOCtl are the include files for the 32-bit
  23. >compiler.  Both Duncan's book and the include file list five arguments to
  24. >the 16-bit DosDevIOCtl, but the 32-bit compiler's include file lists nine
  25. >arguments.  I've concluded that DosDevIOCtl has been changed and that I
  26. >need more documentation before attempting to determine whether DosDevIOCtl
  27. >will serve as a replacement for KbdCharIn.  Calling the 16-bit KbdCharIn
  28. >API from the 32-bit version of the program is an alternative that I'd like
  29. >to avoid, because my compiler doesn't support it at this time.
  30. >
  31. >For a short term solution, can somebody tell me what the syntax is for the
  32. >32-bit DosDevIOCtl call?  For a long term solution, can somebody recommend
  33. >an OS/2 2.0 counterpart to Ray Duncan's book?
  34. >
  35. >
  36.  
  37.    Since there is no OS/2 V2 counterpart of Ray Duncan's book (yet?).
  38. But you can buy the "OS/2 2.0 Technical Library: volume Control Program
  39. Reference". You have all the DosXXX calls documented.
  40.    The IOCTLs are documented in the volume "Physical Device Driver Reference".
  41.  
  42.    -Joel Armengaud
  43.