🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7684

Re: CTRL-ALT-DEL : how to send from a program ?

#7684
From: Jon Freivald
Date: Fri, 22 Jan 1993 18:47
22 lines
1060 bytes
cotrozzi@ghost.dsi.unimi.it (Massimo Cotrozzi) writes:

> Subject says it all.
> Which is the way to reboot from within a program ?
> 
> Many thanx in advance

This will do it every time...  (except from inside a Desqview window):
(Sorry - requires TurboC)

#include <dos.h>
void hard_boot ( void )
{
	__emit__(0xEA, 0xF0, 0xFF, 0x00, 0xF0);
}


=============================================================================
                   Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
	 Nothing is impossible for the man who doesn't have to do it.
		    PGP V2 public key available on request
=============================================================================
Technical Details
Message-ID: <sPksXB6w164w@jaflrn.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jaf
References: <1993Jan20.104411.18440@ghost.dsi.unimi.it>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utoday!jaflrn!jaf
From: Jon Freivald <jaf@jaflrn.UUCP>
Newsgroups: comp.os.msdos.programmer
Subject: Re: CTRL-ALT-DEL : how to send from a program ?
Message-ID: <sPksXB6w164w@jaflrn.UUCP>
Date: Fri, 22 Jan 93 13:47:27 EST
References: <1993Jan20.104411.18440@ghost.dsi.unimi.it>
Organization: The Wizzard's Cave, East Meadow, NY
Lines: 22