Solved

reboot machine

Posted on 1998-02-13
1
254 Views
Last Modified: 2010-04-02
How do you reboot a machine.

In ansi C, for dos
0
Comment
Question by:hh
1 Comment
 
LVL 3

Accepted Solution

by:
q2guo earned 50 total points
ID: 1257244
/* WARNING:  data loss possible */

void bootme(int want_warm)  /* arg 0 = cold boot, 1 = warm */
{
     void (far* boot)(void) = (void (far*)(void))0xFFFF0000UL;
     unsigned far* type = (unsigned far*)0x00400072UL;
     *type = (want_warm ? 0x1234 : 0);
     (*boot)( );
}


0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
difference between mmap and malloc/valloc + mmap fixed 18 259
sameEnds challenge 3 160
Problem to save 10 166
Using ANSI C how to Read a .csv file 10 81
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question