🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #802

Re: DosDevIOCtl

#802
From: joe2
Date: Mon, 07 Sep 1992 11:34
30 lines
2073 bytes
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
Technical Details
Message-ID: <19920907.023525.581@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
References: <1992Sep7.014647.4906@news.Hawaii.Edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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