blahblahboring Posted November 22, 2004 Posted November 22, 2004 I want to prevent windows xp from shutting down. i want to do this as im using my computer as a website server however when i go college my mum comes in my room and turns it off. please help ps. i write vb .net so i would obviously need code in that language BlahBlahBoring Quote
atmosphere1212 Posted November 30, 2004 Posted November 30, 2004 I want to prevent windows xp from shutting down. i want to do this as im using my computer as a website server however when i go college my mum comes in my room and turns it off. please help ps. i write vb .net so i would obviously need code in that language BlahBlahBoring Ill take a crack at it, Theres a file in your C:\windows\system32 directory called shutdown.exe. Im pretty sure that this is the file that is run when you shut your computer down. Replace this file with a 'wrapper' file that you will create in visual studio that accepts a password. If the password is correct then run the shutdown file (which will be renamed) However, this is probably not safe at all :P Quote
Administrators PlausiblyDamp Posted November 30, 2004 Administrators Posted November 30, 2004 A windows shutdown is actually initiated by a call to either ExitWindows or ExitWindowsEx API calls. The shutdown.exe utility is simply a wrapper around these to allow the computer to be rebooted from a script or similar. If you have a form running that simply setes e.cancel = true in it's closing event then this will prevent window closing. However it will not automatically stop other applications from being closed - it depends on the order windows tries to close them down. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Rick_Fla Posted November 30, 2004 Posted November 30, 2004 You might want to also disable the power button on the computer, a simple program of preventing windows from shutting down is not going to help if the switch is flipped. If you have the big money, they do have power supplies that you can access over the net to turn on and off systems. Quote "Nobody knows what I do until I stop doing it."
*Gurus* Derek Stone Posted December 1, 2004 *Gurus* Posted December 1, 2004 ... or we can do it the correct way and revoke shutdown privileges using the Group Policy Editor (gpedit.msc). Of course anyone with more than five brain cells can remove the power cord from the wall outlet. Quote Posting Guidelines
*Experts* Nerseus Posted December 1, 2004 *Experts* Posted December 1, 2004 Maybe just talk to your mum and say "Hey, I want my computer on 24/7 to act as a webserver." Communication is key. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
blahblahboring Posted December 2, 2004 Author Posted December 2, 2004 Maybe just talk to your mum and say "Hey, I want my computer on 24/7 to act as a webserver." Communication is key. -ner lol thanks for all your help everybody, maybe ill just have to accept the fact that i have to find a way of hiding the power supply! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.