🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2204

connecting Win30 (386 enh) programs to devices

#2204
From: Doug McDonald
Date: Fri, 19 Apr 1991 19:55
18 lines
1173 bytes
I want to use Windows 3.0 (386 enhanced mode) to talk to a device
(an ADC convertor) that requires interrupts. I got this to work
just fine by writing a DOS character device driver .sys file, and
sending commands to it with ordinary DOS writes and getting data
with ordinary DOS reads. But this appears to only transfer ONE byte at 
a time. Its inefficient.


So I tried using the DOS IOCTL calls - which can transfer several bytes per
call. I used the MSC 5.1 intdos call. Works fine in real mode -
bombs in standard and 386 mode.


How does one do this? Tools I have: MSC5.1, the Windows 2.11 SDK, 
and assembler. I also run Qemm386.


Doug McDonald (mcdonald@aries.scs.uiuc.edu)
Technical Details
Message-ID: <1991Apr19.195538.23441@ux1.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!usenet
From: mcdonald@aries.scs.uiuc.edu (Doug McDonald)
Newsgroups: comp.windows.ms.programmer,comp.lang.pascal
Subject: connecting Win30 (386 enh) programs to devices
Message-ID: <1991Apr19.195538.23441@ux1.cso.uiuc.edu>
Date: 19 Apr 91 19:55:38 GMT
Sender: usenet@ux1.cso.uiuc.edu (News)
Organization: University of Illinois at Urbana
Lines: 18