home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3336 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!ogicse!news.u.washington.edu!milton.u.washington.edu!steveskr
  2. From: steveskr@milton.u.washington.edu (Steve Skrzyniarz)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: NEED method of detecting Windowed DOS box
  5. Message-ID: <1992Nov10.021440.1419@u.washington.edu>
  6. Date: 10 Nov 92 02:14:40 GMT
  7. Article-I.D.: u.1992Nov10.021440.1419
  8. Sender: news@u.washington.edu (USENET News System)
  9. Distribution: na
  10. Organization: University of Washington, Seattle
  11. Lines: 20
  12.  
  13.  
  14. Does anyone have a straightforward method of detecting
  15. whether or not a process is running in a windowed dos
  16. box (vs full-screen or outside of windows?).  I'm
  17. attempting to do direct outs to hardware ports; unfortunately,
  18. Windows is eating these outs if the dos app is running in a
  19. windowed dos box (although it works fine full screen or
  20. outside of Windows).  I would like to disable this feature
  21. if the user is running the app from a Windowed dos box.
  22. Unfortunately the ports I'm writing to are write-only, so
  23. I can't simply read from them to determine whether or not
  24. my outs took place.
  25.  
  26. I can't imagine that I'm the first programmer to ever need
  27. to need to detect this; does anyone have a code-snippet or
  28. straightforward method for achieveing this?
  29.  
  30. Thanks,
  31.  
  32. steveskr@u.washington.edu
  33.