home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!cs.utexas.edu!sun-barr!ames!news.hawaii.edu!hale!tholen
- From: tholen@hale.ifa.hawaii.edu (Dave Tholen)
- Subject: DosDevIOCtl
- Message-ID: <1992Sep7.014647.4906@news.Hawaii.Edu>
- Sender: root@news.Hawaii.Edu (News Service)
- Nntp-Posting-Host: hale.ifa.hawaii.edu
- Organization: University of Hawaii
- Date: Mon, 7 Sep 1992 01:46:47 GMT
- Lines: 20
-
- I have a 16-bit OS/2 application that I would like to recompile for 32-bit
- OS/2. This application currently uses KbdCharIn to retrieve keystrokes
- from the keyboard. There is no 32-bit version of KbdCharIn, though it
- appears that DosDevIOCtl, Category 4, Function 74H, "Read Character Data
- Records" may be a satisfactory substitute.
-
- I have documentation for the 16-bit DosDevIOCtl in the form of Ray Duncan's
- book and the include files for the 16-bit compiler, but all I have at the
- moment for the 32-bit DosDevIOCtl are the include files for the 32-bit
- compiler. Both Duncan's book and the include file list five arguments to
- the 16-bit DosDevIOCtl, but the 32-bit compiler's include file lists nine
- arguments. I've concluded that DosDevIOCtl has been changed and that I
- need more documentation before attempting to determine whether DosDevIOCtl
- will serve as a replacement for KbdCharIn. Calling the 16-bit KbdCharIn
- API from the 32-bit version of the program is an alternative that I'd like
- to avoid, because my compiler doesn't support it at this time.
-
- For a short term solution, can somebody tell me what the syntax is for the
- 32-bit DosDevIOCtl call? For a long term solution, can somebody recommend
- an OS/2 2.0 counterpart to Ray Duncan's book?
-