home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1395 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.8 KB

  1. Path: sparky!uunet!snorkelwacker.mit.edu!ai-lab!zurich.ai.mit.edu!pshuang
  2. From: pshuang@zurich.ai.mit.edu (Ping Huang)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: WinExec and TSRs
  5. Message-ID: <PSHUANG.92Aug19105815@freeside.ai.mit.edu>
  6. Date: 19 Aug 92 14:58:15 GMT
  7. References: <1992Aug18.161701.29972@dvorak.amd.com>
  8. Sender: news@ai.mit.edu
  9. Organization: M.I.T. Artificial Intelligence Lab.
  10. Lines: 25
  11. In-reply-to: tomd@bali.amd.com's message of 18 Aug 92 16:17:01 GMT
  12.  
  13. In article <1992Aug18.161701.29972@dvorak.amd.com> tomd@bali.amd.com (Tom Deneau) writes:
  14.  
  15.  > Can one use WinExec to invoke a non-Windows TSR application and then
  16.  > have that TSR affect the parent window application's virtual machine?
  17.  > (or is there some other way to do this?).  When I tried this, the TSR
  18.  > was invoked, it hooked an interrupt vector, but the parent's view of
  19.  > that interrupt vector remained unchanged.
  20.  
  21. The reason this is happening is that when you try to WinExec the TSR,
  22. Windows detects that it is a DOS program and not a Windows program (by
  23. looking for the New Executable header present on Windows executables)
  24. and automatically starts up a new DOS box to run the TSR in, separate
  25. from the system virtual machine where all Windows applications are
  26. running (this sequence of events should be readily apparent visually).
  27. You may be able to achieve the effect you want by putting a line to
  28. start the TSR in the file WINSTART.BAT, which Windows will execute
  29. before loading itself completely if in 386 Enhanced Mode. TSR's loaded
  30. there will be visible to Windows applications, as documented in the
  31. User's Manual.
  32.  
  33. --
  34. | Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
  35. | "One Thing to name them all, One Thing to define them,
  36. |  One Thing to place them in environments and bind them..."
  37.  
  38.