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