Thread: Restarting computer

  1. #16
    ---
    Join Date
    May 2004
    Posts
    1,379
    Code:
    jmp FFFF:0000

  2. #17
    Aspiring "Software Guy"
    Join Date
    Aug 2005
    Posts
    46
    Quote Originally Posted by sand_man
    Code:
    jmp FFFF:0000
    Could u please be more specefic?

    Thanx.

  3. #18
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by pritin
    Could u please be more specefic?

    Thanx.
    I think he's trying to be funny That bit of assembly code will probably cause a 16-bit MS-DOS program to crash the computer because there is no such address. However, it won't compile with an MS-Windows compiler.

  4. #19
    ---
    Join Date
    May 2004
    Posts
    1,379
    http://home.flash.net/~hoselton/pubs/mah_007.txt
    The difference between a warm boot and a cold boot, is the value loaded into
    the address 0040:0072. If the value is any number except 1234, a jump to
    address FFFF:0000 performs a cold boot. If the value is 1234 then a jump to
    address FFFF:0000 performs a warm boot. The value 1234 is the one that
    COMMAND.COM stores in that address when it processes the [CTRL]-[ALT]-[DEL]
    key stroke combination.
    Nevermind me. I was trying to be funny. I will stop now because it is obvious that I am not

  5. #20
    Aspiring "Software Guy"
    Join Date
    Aug 2005
    Posts
    46
    Ohhh...


    : really confused too:

    Anyway, I wanted to ask, is there a way to make the user's comp hibernate too...? i dont really need this, but just for knowledge...

  6. #21
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I have a feeling that nvoight's msdn link isn't too far from what you're looking for. MSDN is a good resource for this kind of thing - so just navigate through some of the links and see what you can find. If you want to search MSDN, the best way if to just use Google and add "msdn" to your search query.

  7. #22
    Aspiring "Software Guy"
    Join Date
    Aug 2005
    Posts
    46
    The problem now, is that

    Code:
    system  ("SHUTDOWN -s -t 30 -c"Shutting down" ");
    Gives me 3 errors..

    Using dev cpp

    What am i doing wrong?

  8. #23
    Software engineer
    Join Date
    Aug 2005
    Location
    Oregon
    Posts
    283
    Just use system("shutdown -s -tt 01"); and be done with it.

  9. #24
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374

    Exclamation

    Ok this thread is starting to get annoying. (The moderators haven’t actually mentioned anything about not releasing the code, or the dangers of using it) so I’m just going to give you the solution anyway.

    This code can be found on Microsoft’s homepage, as briefly mentioned before it’s better than using “system”.

    There is also an example of this shown here:-www.thecodeproject.com

  10. #25
    Aspiring "Software Guy"
    Join Date
    Aug 2005
    Posts
    46
    Thanks buddy. That oughta do the job!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 34
    Last Post: 02-26-2006, 01:16 PM
  2. Major Computer Problem
    By Olidivera in forum Tech Board
    Replies: 10
    Last Post: 07-15-2005, 11:15 AM
  3. Tabbed Windows with MDI?
    By willc0de4food in forum Windows Programming
    Replies: 25
    Last Post: 05-19-2005, 10:58 PM
  4. Computer will not boot.
    By RealityFusion in forum Tech Board
    Replies: 25
    Last Post: 09-10-2004, 04:05 PM
  5. Randomly Restarting Computer
    By DirX in forum Tech Board
    Replies: 19
    Last Post: 03-25-2003, 03:00 PM