home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
- =============================================================================
-