Thread: Reboot example

  1. #1
    Registered User
    Join Date
    Dec 2002

    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
    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 :-

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Visalia, CA, USA
    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, 01: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