home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / msdos / programm / 2258 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  3.4 KB

  1. Xref: sparky alt.msdos.programmer:2258 comp.os.msdos.programmer:8802 comp.lang.pascal:5057
  2. Path: sparky!uunet!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
  3. From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
  4. Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.windows.ms.programmer,comp.lang.pascal
  5. Subject: Re: Windows and printscreen
  6. Message-ID: <BtKMtt.Mrv@ireq.hydro.qc.ca>
  7. Date: 26 Aug 92 03:25:05 GMT
  8. References: <17387rINNnm9@matt.ksu.ksu.edu> <BtGp2C.LB@ireq.hydro.qc.ca> <17alp5INN4f0@matt.ksu.ksu.edu>
  9. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  10. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  11. Lines: 52
  12.  
  13. In article <17alp5INN4f0@matt.ksu.ksu.edu> holland@matt.ksu.ksu.edu (Rich Holland) writes:
  14. >
  15. >Okay, I understand that I can't run a TSR that redirects Int 09h, then run
  16. >Windows, and when I "shell" to DOS from windows, expect my TSR to still
  17. >be active.  That's *NOT* what I was attempting to do.  Instead of running
  18.  
  19. But, you should!  If you consider DOS (i.e. prompt available) and Windows
  20. (i.e. MS Windows controlling mouse, keyboard and screen) as 2 modes,
  21. whenever you are in DOS mode (from prompt after booting or from a
  22. DOS shell like command.com running inside a Windows window or in
  23. full screen mode), the TSR is available and you could hang up int 09.
  24.  
  25. >something like this: 'tn3270 matt' from within windows, I'd change the
  26. >PIFF file to read: 'prthru tn3270 matt' -- my prthru program would Exec()
  27. >whatever command I pass it, after re-directing the Interrupt so I can
  28. >catch the prtscr (i had originally thought I needed to grab 05h, but I
  29. >found out later I need the keyboard, 09h).  When the telnet session ends
  30. >(in this case), control returns to my prthru program, which restores the
  31. >vectors and exits to windows -- as far as Windows knows, there hasn't been
  32. >any re-direction...
  33. >
  34. >Now, someone tell me why THIS won't work?
  35. >
  36. In your example, prthru is a Windows program calling tn3270, a Windows
  37. program too, so int 05 and 09 are catched.  If, however, prthru and
  38. tn3270 are both DOS programs (i.e. Windows will install DOS prompt before
  39. running prthru), then you should be able to intercept printscreen, but only
  40. if the DOS window is active.  It is like a program writting directly to
  41. the screen (like a text editor I wrote years ago).  In the DOS window,
  42. the editor writes to the video memory directly so that in DOS full
  43. screen, the video memory is not intercepted.  However, in DOS window
  44. with Windows active, when the editor writes to the screen, Windows intercept
  45. the character, and re-write it on the copy of memory video in the DOS window.
  46.  
  47. In other words, Windows catch many interrupts (if not all) and when
  48. WIndows has the control, you can't do anything.  Maybe you could do something
  49. if you intercept WIndows commands, but this is not using the interrupts
  50. and should be discussed in the ms-windows newsgroups anyway.
  51.  
  52. >
  53. >-- 
  54. >Rich Holland              | INTERNET: holland@matt.ksu.ksu.edu
  55. >100 Jardine Terr, Apt A7  | BITNET  : holland@ksuvm
  56. >Manhattan, KS  66502-3357 | UUCP    : ...!rutgers!matt.ksu.ksu.edu!holland
  57. >"Jesus saves...but Gretzky gets the rebound!  He shoots!  He scores!!"
  58.  
  59.  
  60. -- 
  61.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  62.  /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
  63. J   __>  Vient de paraitre : Andre Jarret et ses Ancetres
  64. \_.-===  En vente par l'auteur                      Opinions ? Et pis non !
  65.