Thread: Screen program protection?

  1. #1
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765

    Question Screen program protection?

    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

  2. #2
    Registered User Dr. Bebop's Avatar
    Join Date
    Sep 2002
    Posts
    96
    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.
    Processing error: Stupidity detected.
    ------------------------------
    Dr. Bebop
    Windows XP Professional Ed.
    Microsoft Visual Studio 6

  3. #3
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    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?

  4. #4
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    Ralph Brown's Interrupt List, if that's where you'd find your answer...
    hasafraggin shizigishin oppashigger...

  5. #5
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Where canI find this List? do you perhaps have a link for me?

  6. #6
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Never mind about the list...found it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  2. Making Program Launch Full Screen
    By mrtechguy in forum C++ Programming
    Replies: 19
    Last Post: 03-15-2006, 02:06 AM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  4. Replies: 2
    Last Post: 05-10-2002, 04:16 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM