Reboot example

This is a discussion on Reboot example within the C++ Programming forums, part of the General Programming Boards category; can you give me an example with the result that's the computer reboot?...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    8

    Reboot example

    can you give me an example with the result that's the computer reboot?

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    If you want to reboot then you have to ask the operating system to do it. Without knowing your operating system this is difficult. On windows check out winapi functions ExitWindowsEx() and InitiateSytemShutdown().
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Code:
    std::cout << "Please press the CTRL+ALT+DEL" << std::endl;
    
    // or the platform independant
    
    std::cout << "Please press the 'reset' button on your computer." << std::endl;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with reboot(), takes a few seconds before rebooting
    By galapogos in forum Linux Programming
    Replies: 5
    Last Post: 12-01-2008, 12:21 PM
  2. Computer Not Booting
    By jrahhali in forum Tech Board
    Replies: 61
    Last Post: 10-08-2004, 11:32 AM
  3. Getting last system reboot time - C
    By Markallen85 in forum Windows Programming
    Replies: 3
    Last Post: 08-22-2003, 12:32 PM
  4. Reboot
    By Commander in forum C Programming
    Replies: 6
    Last Post: 09-24-2001, 12:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21