
Closing a file, file handle, let me explain.
Quote:
> Don't post on c.l.c, then. comp.os.msdos.programmer would probably be
> a better choice.
Ok...I'll post the question to comp.os.msdos.programmer.
Quote:
> l> Is is possible to stop a program already running by executing a C
> l> program that grabs the file handle of the running program and closing
> l> the file?
> C programs don't have associated file handles, unless you explicitly
> open them with fopen(). Even on OS's and OS shells where programs are
> occasionally partially loaded from disk, this is handled
> transparently; the application has no way to get at the file handle
> the OS uses.
A few years ago I had a shareware program called Mark and Release. In
case your not familiar with the two, Mark marks a location in memory
then any executable loaded after MARK is run is loaded above this
address. Later, if you want a quick release, call RELEASE from from a
batch file and the executable vanishes.
Couldn't this be achieved with C?
Quote:
> This _is_ an ANSI C question; look at the exit() function.
Ok....I have looked at the exit function. All I can gain is that it
exits the calling process and returns to the OS. This is what I want to
accomplish in the child process.
Quote:
> Not in a text-based newsreader, I can't. And not when I read news
> messages that are plain-text (as they should be) and not HTML. <grr>
Unfortunate.
Thanks