delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/13/11:42:49

Message-ID: <38A6DF4C.28ED4714@maths.unine.ch>
Date: Sun, 13 Feb 2000 16:43:57 +0000
From: Gautier <gautier DOT demontmollin AT maths DOT unine DOT ch>
X-Mailer: Mozilla 4.7 (Macintosh; I; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Untrapping Ctrl-C in DJGPP
References: <01bf725f$15b1d9e0$12e126d4 AT pena-ii> <Pine DOT SUN DOT 3 DOT 91 DOT 1000209090433 DOT 9816J-100000 AT is> <01bf7348$40dc9260$69e126d4 AT pena-ii> <Pine DOT SUN DOT 3 DOT 91 DOT 1000210133041 DOT 27855K-100000 AT is> <f2s5as89cbh6f1c4effk3bb03k1bnk2s6i AT 4ax DOT com> <38A2FF88 DOT E4840FC9 AT americasm01 DOT nt DOT com> <rs56as0srv5guijk7d6vmebitjhqt154s5 AT 4ax DOT com> <38A5520F DOT 57B6ED6A AT is DOT elta DOT co DOT il> <38A5707A DOT 4ED5ED78 AT maths DOT unine DOT ch> <ba0bas0t0323kgh5nnl5kaiur5rt8ggmln AT 4ax DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000213095030 DOT 29873L-100000 AT is>
NNTP-Posting-Host: mac13-32.unine.ch
X-Trace: 13 Feb 2000 16:42:36 +0100, mac13-32.unine.ch
Lines: 33
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli:

> > >> I don't know, but I suspect that command.com and edit.com are actually
> > >> Windows console applications in disguise.

> > Ran 'em both in F8-DOS.

> That doesn't really prove anything: programs exist that can run both in
> DOS and on Windows.  In fact, each Windows application has a small DOS
> stub prepended to it.

True: normally the DOS stub just writes "This program requires..."
and from a DOS point of view the real Windows EXE is just appended.
In DR-DOS, taskmgr.exe contains the full task manager in its DOS stub
and run as a Windows task manager when run under Windows. Idem for lock iirc.

*But* for command.com and edit.com, they are no EXEs and seem too small
to contain 2 programs in one (the DOS and the Win32 console app) -
compared to their sizes in MS-DOS 6.22.
Some indices: the Win95 OSR2 edit.com runs on a 286 with DR-DOS 7.03;
if you dump the assembler from command.com with debug, you'll find 6 instances
of the Win9x close request calls (int 2f multiplex with ax=168f).

> But a special function to turn on this checking, for programs that
> want it, would be nice.

I vote for this functionality to be *optional* too!

-- 
Gautier

_____\\________________\_______\_________
http://members.xoom.com/gdemont/gsoft.htm

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019