home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!aa596
- From: aa596@cleveland.Freenet.Edu (Peter Haller)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Trapping 386 IO port accesses
- Date: 5 Sep 1992 21:31:35 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Lines: 45
- Message-ID: <18b8vnINNdv8@usenet.INS.CWRU.Edu>
- References: <tgreen.715550500@pv0547.vincent.iastate.edu> <1992Aug31.191659.672@Schultz.ON.CA> <1992Sep1.143350.10587@ncsu.edu> <tgreen.715391992@vincent2.iastate.edu> <1992Sep03.153802.688@Schultz.ON.CA>
- Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
- NNTP-Posting-Host: slc12.ins.cwru.edu
-
-
- In a previous article, tgreen@iastate.edu (Todd Greenfield) says:
-
- >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.
- >
- >any of you windows programmers care to comment? I thought
- >that windows can trap any IO access, such as comm ports or
- >the timer. How do you programmer a driver to handle something
- >like this? I've never programmed for windows, so references
- >and any advice would be appreciated.
- >
- >>>
- >>>I'd be interested in seeing what others think, and how one
- >>>would go about doing it, as I have a similar need.
- >
- >> Let's keep the discussion going
- >
- >
- By default, 386 enhanced mode Windows does not trap i/o ports. The
- virtual machine manager can be programmed to perform such feats. I have
- seen Windows VxDs that cause non standard MIDI devices to behave like
- Roland MP401 type devices. This is all done in a VxD. For more info on VxDs
- consult "Writing Windows Devices Drivers" by Daniel Norton and the
- MS Device Driver Development Kit.
-
- PCH
-
- PS: A good series of article was also in Windows Tech on VxDs.
- --
- Peter C. Haller | 'If you do what you
- Lorain Products | have always done,
- aa596@cleveland.Freenet.Edu | expect what you have
- "Are we having fun yet?" | always received.'
-