www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/05/14:30:02

From: "Matt" <para AT tampabay DOT rr DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <9hq2q6$cqe$1 AT info DOT cyf-kr DOT edu DOT pl> <Za007.76151$Mf5 DOT 21224879 AT news3 DOT rdc1 DOT on DOT home DOT com> <9hq5f2$1ca$1 AT info DOT cyf-kr DOT edu DOT pl>
Subject: Re: Reseting / turning off computer ?
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <MU117.96096$_T2.24674745@typhoon.tampabay.rr.com>
Date: Thu, 05 Jul 2001 17:58:04 GMT
NNTP-Posting-Host: 65.32.103.94
X-Complaints-To: abuse AT rr DOT com
X-Trace: typhoon.tampabay.rr.com 994355884 65.32.103.94 (Thu, 05 Jul 2001 13:58:04 EDT)
NNTP-Posting-Date: Thu, 05 Jul 2001 13:58:04 EDT
Organization: RoadRunner - TampaBay
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rafal Maj" <raf256 AT go2 DOT pl> wrote in message
news:9hq5f2$1ca$1 AT info DOT cyf-kr DOT edu DOT pl...
> > reset a x86?
> > jmp far ffff:0000
> Thnx, I will check it...
> I heard that this might not work under some micro$oft :) systems like
> winNT...
> --
> Raf256

Not a chance it would work. Windows NT/2K don't let silly little 16-bit
programs run wild and do things like that. You'll crash your program,
perhaps even the VDM if you're lucky, but you won't reboot the machine. If
Win9x lets you do this, then I'm glad I'm not on Win9x anymore. Under
Windows, there is an API to do it, but I don't recall the name of it. If you
executed that instruction, it would be the equivalent of a hard shutdown
(i.e. turning the power off without shutting Windows down). Then you run
into all kinds of problems such as the two FAT tables differing on FAT
partitions, the possibility of spooled disk data being lost, etc.


- Raw text -


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