home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vnet.ibm.com
- From: joe2@vnet.ibm.com
- Message-ID: <19920907.023525.581@almaden.ibm.com>
- Date: Mon, 7 Sep 92 11:34:29 FST
- Newsgroups: comp.os.os2.programmer
- Subject: Re: DosDevIOCtl
- Reply-To: <joe2@vnet.ibm.com>
- Disclaimer: This posting represents the poster's views, not those of IBM
- News-Software: UReply 3.0
- References: <1992Sep7.014647.4906@news.Hawaii.Edu>
- Lines: 30
-
- In <1992Sep7.014647.4906@news.Hawaii.Edu> Dave Tholen writes:
- >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?
- >
- >
-
- Since there is no OS/2 V2 counterpart of Ray Duncan's book (yet?).
- But you can buy the "OS/2 2.0 Technical Library: volume Control Program
- Reference". You have all the DosXXX calls documented.
- The IOCTLs are documented in the volume "Physical Device Driver Reference".
-
- -Joel Armengaud
-