View Full Version : Screen program protection?

09-10-2002, 08:19 AM
Would it be possible to write a program that monotors the monitor power state? (on or off) And if possible, if the screen is turned off at the power button and the power is turend back again that the pc will shut itself down unless you turned on the power twice in a row within 5 seconds?

I know this sounds a bir weird, but I want to know:D

Dr. Bebop
09-10-2002, 09:05 AM
Yea, you can do this but you need to have access to the hardware so that you can check whether or not the computer is sending stuff to the monitor or if the power button is toggled. Then you need to be able to legitimately shut down the computer with your program, this also requires some kind of low level control.

09-10-2002, 11:20 PM
Ok, so I'll propably need an interrupt list of some kind to check the power status. Can anyone maybe help me with such a list?

I was also thinking of maybe making the program TSR?

09-10-2002, 11:27 PM
Ralph Brown's Interrupt List, if that's where you'd find your answer...

09-10-2002, 11:30 PM
Where canI find this List? do you perhaps have a link for me?

09-10-2002, 11:48 PM
Never mind about the list...found it.:D