Solved

reboot machine

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

In ansi C, for dos
0
Comment
Question by:hh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coverting 24 hour time to 12 hour in C++ 15 182
outside company writing a dll in c/c++, I want to call it from C# 2 76
C Language combined operators 28 122
Line meaning 9 90
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

756 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