Date: Sun, 23 Aug 1998 17:18:55 +0300 (IDT) From: Eli Zaretskii To: Endlisnis 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.