Article View: comp.os.ms-windows.programmer.misc
Article #2687? Device Interface w/o DDK ?
From: Tracy Blomquist
Date: Mon, 11 Jan 1993 14:45
Date: Mon, 11 Jan 1993 14:45
43 lines
2355 bytes
2355 bytes
I have a PC card that requires the use of h/w int 2-5 (one of)
and reading/writing to several ports. I want to port the DOS
app that uses it to Windows. I don't have the DDK.
I read an article in MSJ a while back about "embedded device
drivers" in windows apps. But these drivers can only access
devices generating ints >= 30h. I'm thinking about the following
approach to get it to work...
----------------------------
Windows| Windows App int. to DOS |
----^-----------------------
r/w | int > 30h ^
| V | int > 30h
----V------------------------
DOS | Data Buf | Dos device driver|
----^------------------------
| ^
port i/o | int
| | 2-5
----V-----------------------
Device | PC Card |
----------------------------
Basically the card interrupts a DOS device driver or TSR (loaded at DOS
startup) which will call a s/w int that windows will grab. Windows
will then read the appropriate data from the DOS data buffer area.
Is this workable? If so, does anyone know of a skeleton that I can
use for this to save myself starting from scratch? How can I get
windows to find the location of the DOS data buffer area to read/write
to/from it?
Is there a better solution?
--
Thanks,
,----------------------,------------------------.---------------------,
| Karl Tracy Blomquist | E-MAIL: tracyb@bnr.ca | Fax: 1-613-765-4018 |
| Consultant | | Ph: 1-613-765-4886 |
`----------------------'------------------------'---------------------'
| Bell-Northern Research, P.O.Box 3511, Stn C, Ottawa, Ont., K1Y-4H7 |
`---------------------------------------------------------------------'
Technical Details
Message-ID:
<1993Jan11.144522.7687@bnr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcarh829!tracybShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcarh829!tracyb From: tracyb@bnr.ca (Tracy Blomquist) Subject: ? Device Interface w/o DDK ? Message-ID: <1993Jan11.144522.7687@bnr.ca> Sender: news@bnr.ca (usenet) Nntp-Posting-Host: bcarh829 Organization: Bell Northern Research X-Newsreader: TIN [version 1.1 PL6] Distribution: na Date: Mon, 11 Jan 1993 14:45:22 GMT Lines: 43