delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/10:19:28

Date: Sun, 23 Aug 1998 17:18:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Endlisnis <s257m AT unb DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Can a DOS Console App close its own window?
In-Reply-To: <35D6542B.51220CF2@unb.ca>
Message-ID: <Pine.SUN.3.91.980823171634.1451Z-100000@is>
MIME-Version: 1.0

On Sun, 16 Aug 1998, Endlisnis wrote:

>  asm ("int $0x19;");
> and the DOS box will close, if you are in real dos, your machine will reboot.  I
> am confused by the way the __dpmi_int call works differently though, it locks the
> machine for about 5 seconds then a window pops up saying the application has ended
> improperly and must be restarted.  What does __dpmi_int do that is different?

Literal INT NN instructions are processed by Windows differently than 
__dpmi_int.  The latter calls the Windows DPMI server, whereas the former 
winds up in the DOS extender built into Windows.  Is it surprising that 
different parts of Windows process similar events differently?  I don't 
think so.

- Raw text -


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