home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1693 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.4 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!cleveland.Freenet.Edu!aa596
  2. From: aa596@cleveland.Freenet.Edu (Peter Haller)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Trapping 386 IO port accesses
  5. Date: 5 Sep 1992 21:31:35 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 45
  8. Message-ID: <18b8vnINNdv8@usenet.INS.CWRU.Edu>
  9. 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>
  10. Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
  11. NNTP-Posting-Host: slc12.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, tgreen@iastate.edu (Todd Greenfield) says:
  15.  
  16. >In <1992Sep03.153802.688@Schultz.ON.CA> peter@Schultz.ON.CA (Peter Roeser) writes:
  17. >
  18. >>In article <tgreen.715391992@vincent2.iastate.edu> tgreen@iastate.edu
  19. >(Todd Greenfield) writes:
  20. >[ original discussion of need to trap access to IO port deleted ]
  21. >>>
  22. >>>what about doing this under windows?  I know nothing of windows
  23. >>>programming,  but wouldn't it be possible to write a windows
  24. >>>driver (for 386 enh mode of course) to do something like this?
  25. >
  26. >>  I have been told that although Windows uses protected mode to do
  27. >>  memory management( ie. traps when you talk to non-available mem.)
  28. >>  it does not trap IO references.
  29. >
  30. >any of you windows programmers care to comment?  I thought
  31. >that windows can trap any IO access, such as comm ports or
  32. >the timer.  How do you programmer a driver to handle something
  33. >like this?  I've never programmed for windows, so references
  34. >and any advice would be appreciated.
  35. >
  36. >>>
  37. >>>I'd be interested in seeing what others think, and how one 
  38. >>>would go about doing it, as I have a similar need.
  39. >
  40. >>  Let's keep the discussion going
  41. >
  42. >
  43. By default, 386 enhanced mode Windows does not trap i/o ports. The
  44. virtual machine manager can be programmed to perform such feats. I have
  45. seen Windows VxDs that cause non standard MIDI devices to behave like
  46. Roland MP401 type devices. This is all done in a VxD. For more info on VxDs
  47. consult "Writing Windows Devices Drivers" by Daniel Norton and the
  48. MS Device Driver Development Kit.
  49.  
  50. PCH
  51.  
  52. PS: A good series of article was also in Windows Tech on VxDs.
  53. -- 
  54. Peter C. Haller                |    'If you do what you
  55. Lorain Products                |    have always done,
  56. aa596@cleveland.Freenet.Edu         |    expect what you have
  57. "Are we having fun yet?"        |    always received.'
  58.