Thread View: comp.os.os2.programmer.misc
2 messages
2 total messages
Started by Sundar Kingsley
Thu, 04 Apr 1996 00:00
HELP: OS/2 Device Driver/ASPI Interface
Author: Sundar Kingsley
Date: Thu, 04 Apr 1996 00:00
Date: Thu, 04 Apr 1996 00:00
24 lines
1847 bytes
1847 bytes
I have a simple OS/2 device driver and an application that scans a SCSI adapter for devices on OS/2 warp. These were taken straight out of the Adaptec software developers' kit OS/2 section. I do not have any experience writing device drivers and little experience programming on OS/2. The driver(16bit) was compiled using Microsoft 6.0 and the application(32bit) was compiled using CSet 2.1 from IBM. The driver loads on boot up and the adapter INQUIRY and GETDEVICE scsi commands issued through DosDevIOCtl calls work fine, but the scsi EXECUTE command with an inquiry on the scsi devices through a DosDevIOCtl call returns with an error INVALID PARAMETER (Error No 87). What am I missing here? Any help or suggestions are welcome. If the application is compiled using Microsoft 6.0 and the corresponding DosDevIOCtl call is used, the EXECUTE command works fine. We need our applications to be 32 bit though. Email replies to spking@netcom.com is appreciated. Thank you. Sundar
HELP: OS/2 Device Driver/ASPI Interface
Author: Timur Tabi
Date: Thu, 04 Apr 1996 00:00
Date: Thu, 04 Apr 1996 00:00
17 lines
1633 bytes
1633 bytes
In message <spkingDpBIEv.JCy@netcom.com> - spking@netcom.com (Sundar Kingsley)Thu, 4 Apr 1996 03:16:07 GMT writes: >If the application is compiled using Microsoft 6.0 and the corresponding >DosDevIOCtl call is used, the EXECUTE command works fine. We need our >applications to be 32 bit though. There's a difference between the 32-bit and 16-bit versions of DosDevIOCtl. The 32-bit version includes additional parameters. If you're taking the 16-bit app code and compiling it with a 32-bit compiler, then the compiled code might not be calling the correct version of DosDevIOCtl or it might not be calling it correctly. -- Timur "too sexy for my code" Tabi, timur@vnet.ibm.com Architect, OS/2 Warp realtime MIDI subsystem http://timur.austin.ibm.com (internal IBM only) http://www.shirenet.com/~crusader/Timur (external)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads