From: "Matt" Newsgroups: comp.os.msdos.djgpp References: <9hq2q6$cqe$1 AT info DOT cyf-kr DOT edu DOT pl> <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: 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" 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.