make the screen sleep

This is a discussion on make the screen sleep within the C++ Programming forums, part of the General Programming Boards category; Hi, i need a something that can make the screen go to sleepmode (or make windows stop transmitt video signals) ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    2

    make the screen sleep

    Hi, i need a something that can make the screen go to sleepmode (or make windows stop transmitt video signals) i searched a bit, but cant find anything.

    so i decidet to register ant ask :P (it isn't for any malicious sowtwere, its for someone that wanna fake that his computer is off)

    Thanks in advanced

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,630
    Code:
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, lParam);
    http://www.codeproject.com/KB/system...ay_states.aspx

    gg

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    2
    THANKS!! now i need to find out how it works.... *clicks the link*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL + Keys
    By Livijn in forum Game Programming
    Replies: 24
    Last Post: 05-11-2007, 04:31 PM
  2. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 10:53 AM
  3. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM
  4. How To Make: Screen Killer (Game)
    By BillBoeBaggins in forum C++ Programming
    Replies: 3
    Last Post: 11-20-2003, 05:06 PM
  5. Clear Screen
    By KneeGrow in forum C++ Programming
    Replies: 1
    Last Post: 10-24-2003, 10:17 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21