home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12362 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.0 KB  |  33 lines

  1. Path: sparky!uunet!utoday!jaflrn!jaf
  2. From: Jon Freivald <jaf@jaflrn.UUCP>
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: CTRL-ALT-DEL : how to send from a program ?
  5. Message-ID: <sPksXB6w164w@jaflrn.UUCP>
  6. Date: Fri, 22 Jan 93 13:47:27 EST
  7. References: <1993Jan20.104411.18440@ghost.dsi.unimi.it>
  8. Organization: The Wizzard's Cave, East Meadow, NY
  9. Lines: 22
  10.  
  11. cotrozzi@ghost.dsi.unimi.it (Massimo Cotrozzi) writes:
  12.  
  13. > Subject says it all.
  14. > Which is the way to reboot from within a program ?
  15. > Many thanx in advance
  16.  
  17. This will do it every time...  (except from inside a Desqview window):
  18. (Sorry - requires TurboC)
  19.  
  20. #include <dos.h>
  21. void hard_boot ( void )
  22. {
  23.     __emit__(0xEA, 0xF0, 0xFF, 0x00, 0xF0);
  24. }
  25.  
  26.  
  27. =============================================================================
  28.                    Jon Freivald ( jaf%jaflrn@uunet.UU.NET )
  29.      Nothing is impossible for the man who doesn't have to do it.
  30.             PGP V2 public key available on request
  31. =============================================================================
  32.