PDA

Click to See Complete Forum and Search --> : Disabling everything


g_Rajasekar
Feb 10th, 2001, 10:22 PM
I want to disable everything making the computer fatique. it shouldnot even respond to the poweroff button of the machine. Access only through password.

Any solutions?

KrishnaSantosh
Feb 11th, 2001, 12:52 AM
Windows Can Be Disabled, Rajasekhar. Each And Every Part Of Windows Can Be Disabled.

Edhavadhu Doubt irundha Enakku EMail anuppu.

Feb 11th, 2001, 10:12 AM
Disabling Windows is easy; just make a borderless form maximized on the screen (so the user can't access anything) and disable Ctrl+Alt+Del using code.

The hard part is the power button. Since it's hardware, there's no way you can do it using software.

gwdash
Feb 11th, 2001, 02:24 PM
in most new computers, the power button runs software, so you can disable it, but holding down for 5 seconds still shuts down the PC. If it is a desktop, you can open up the computer and disconnect the switch. Then the only way to shut down the computer is via windows(your program) or to pull the power cord out!

Lord Orwell
Feb 14th, 2001, 02:48 AM
you could disable the button like that, but the newer atx style computers have power switches on the power supply as well as the power button (to take into account the plethora of windows crashes that stop powering down)
But i have an idea that might help: If you could subclass your program's message handler and interrupt any wm_close messages, it would stop windows from closing, thus preventing power-down except by unplugging or the 4-second thing (which most people don't even know about)
Surely you've seen the "... is not responding" message boxes? Well - you will probably generate one, but if you disable the mouse and keyboard, no one will be able to click the close program button on it.
To stop the latter, pop up a message box "Warning, Hard drive data may be destroyed if power is interrupted." if you detect the close message...

Feb 14th, 2001, 02:53 PM
There is no way to shut off the power. It's hardware. Even if you subclass every single message of every single window you still can't prevent the user from shutting down.

Ph34R
Feb 14th, 2001, 05:24 PM
The newer computers send a message to the OS, telling it that the power button was pushed, and it is possible to override this, BUT, when you hold the power button down for 5 seconds (this time may differ on some systems) it bypasses the OS, and shuts the computer down.

Heh, mebe try disableing everything, and then unhook the power button inside your computer? But that would require that you open up your computer every time you want to shut down, thats kinda lame, but if you realy need to make shure its not shut down, be shure to melt the power cord into the computer, and glue the other end on a UPS backup, then, ontop of that, make shure their is no way for anyone to unplug the fuse, heh, if you did that, you may also want to check yourself into a mental clinic.

Lord Orwell
Feb 15th, 2001, 01:20 PM
i believe he was referring to his program running on someone else's computer?
Hard to do that to theirs. I made the point earlier that the power buttons on new computers didn't actually do the shut down. It's how atx style computers are designed. The way i listed above would stop everything except the 4 sec(in my case) button hold in, which most people don't know about anyway.

Darkangel
Feb 16th, 2001, 10:30 AM
make a cover all form
and make oit stay on top of }everyone else
also disable ctrl alt del
disable alt f4


but the power and reset bottons can't be worked out because they are hardware

Smendle
Feb 26th, 2001, 07:43 PM
I dont think anyone can stop me from pulling that black cord thingy on the back of the machine.

Regards,
Smendle