home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / misc / 4934 < prev    next >
Encoding:
Text File  |  1992-08-29  |  663 b   |  20 lines

  1. Path: sparky!uunet!dtix!darwin.sura.net!sgiblab!news.cs.indiana.edu!yhlin@kiwi.ucs.indiana.edu
  2. From: yhlin@kiwi.ucs.indiana.edu (yue-herng lin)
  3. Newsgroups: comp.os.msdos.misc,in.pc
  4. Subject: Re: Reboot a PC from a batch file.
  5. Message-ID: <1992Aug28.231140.16049@news.cs.indiana.edu>
  6. Date: 29 Aug 92 04:11:33 GMT
  7. References: <Btp7FK.3qH@mentor.cc.purdue.edu> <19920828.103054.543@almaden.ibm.com> <1992Aug28.232022.14579@dartvax.dartmouth.edu>
  8. Organization: Indiana University, Bloomington
  9. Lines: 9
  10.  
  11. Here's a sample code that you can use Turbo C(++) to do:
  12.  
  13. #include <dos.h>
  14. void far (*func_ptr)();
  15. main()
  16. {
  17.     func_ptr = (void far *)0xffff0;
  18.     (*func_ptr)();
  19. }
  20.