🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #275

Re: Trapping 386 IO port accesses

#275
From: Tom Hill
Date: Tue, 08 Sep 1992 06:52
55 lines
1885 bytes
In article <tgreen.715550500@pv0547.vincent.iastate.edu> tgreen@iastate.edu (Todd Greenfield) writes:
>In <1992Sep03.153802.688@Schultz.ON.CA> peter@Schultz.ON.CA (Peter Roeser) writes:
>
>>In article <tgreen.715391992@vincent2.iastate.edu> tgreen@iastate.edu
>(Todd Greenfield) writes:
>[ original discussion of need to trap access to IO port deleted ]
>>>
>>>what about doing this under windows?  I know nothing of windows
>>>programming,  but wouldn't it be possible to write a windows
>>>driver (for 386 enh mode of course) to do something like this?
>
>>  I have been told that although Windows uses protected mode to do
>>  memory management( ie. traps when you talk to non-available mem.)
>>  it does not trap IO references.
>
.
.
.
>>  Let's keep the discussion going
>
OK,

You can write what is called a virtual device driver, which will allow
you to trap references to a given port from a DOS session. I'm not sure
if you can trap references from windows apps. Anybody know what IOPL is
for 386 Enhanced mode, and what privilege level windows apps run at?

Documentation can be found in the windows DDK. (Which I don't have
handy, or I'd look it up myself) and in Daniel Norton's Writing
Device Drivers for Windows.

Tom Hill

A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
Windows Device Drivers.
Technical Details
Message-ID: <_brnq7_.hill@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!decwrl!csus.edu!netcom.com!hill
References: <tgreen.715391992@vincent2.iastate.edu> <1992Sep03.153802.688@Schultz.ON.CA> <tgreen.715550500@pv0547.vincent.iastate.edu>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer,comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!decwrl!csus.edu!netcom.com!hill
From: hill@netcom.com (Tom Hill)
Subject: Re: Trapping 386 IO port accesses
Message-ID: <_brnq7_.hill@netcom.com>
Date: Tue, 08 Sep 92 06:52:19 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
References: <tgreen.715391992@vincent2.iastate.edu> <1992Sep03.153802.688@Schultz.ON.CA> <tgreen.715550500@pv0547.vincent.iastate.edu>
Distribution: na
Lines: 56