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.
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)
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.
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.
Re: Disable Hard Shutdown in Windows XP or Vista
That's controlled by the bios, not windows.