Results 1 to 5 of 5

Thread: Disable Hard Shutdown in Windows XP or Vista

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    12

    Disable Hard Shutdown in Windows XP or Vista

    I know that holding the power button down for five seconds is supposed to bypass software and shut the computer down, but I was wondering if there was anyway to bypass or disable this feature. Is there anyway to stop the computer from automatically turning off after the power button is held down for five seconds? Is there anyway to seriously delay the shut down (increase the time that it must be held down from five to say ten, fifteen, or twenty seconds)? There have been times when my computer has frozen and it has taken much longer than five seconds to hard reboot, which leads me to believe that there is some software involvement in the hard boot request. Does anyone know how to disable this request? I am asking specifically for XP and Vista and on a laptop that has no access to the BIOS. Thanks for any help that you can offer.

    My goal is to thwart the mischievous three and a half year old twins in my house who enjoy holding down the power button on my computer. I often leave the computer unattended as it completes compiling tasks, and it is not possible to keep the kids away from it and putting something over the power button has proved ineffective. I want to make a little program that runs and disables shutdown via holding down the power button. It would make my life for the next several years MUCH easier.

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    12

    Re: Disable Hard Shutdown in Windows XP or Vista

    Does any one know if the POWER_FORCE_TRIGGER_RESET would be of any use here? (http://msdn.microsoft.com/en-us/libr...48(VS.85).aspx)

  3. #3
    Hyperactive Member danecook21's Avatar
    Join Date
    Feb 2008
    Location
    NC, USA
    Posts
    501

    Re: Disable Hard Shutdown in Windows XP or Vista

    Get a screwdriver, open up the case, disconnect the 2-wire twist that is going to the front of the case to the power button... prob solved

    I really don't think you can bypass that in code, as it is a BIOS function. You could check the BIOS to see if there is an option there.

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Disable Hard Shutdown in Windows XP or Vista

    I guess you must pass the values with assembly.
    And first get an explanation and a driver for your bios.
    I don't think you can use Vstudio.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5
    Member
    Join Date
    Jan 2008
    Posts
    42

    Re: Disable Hard Shutdown in Windows XP or Vista

    That's controlled by the bios, not windows.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width