[C++] Turn monitor on/off (can be used in your minivirus) menu

User Tag List

Results 1 to 3 of 3
  1. #1
    snipesh0tz's Avatar Member
    Reputation
    16
    Join Date
    Dec 2007
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Turn monitor on/off (can be used in your minivirus)

    Hi all,

    Here's a little code how wich can help you making a minivirus

    Code:
    #include <windows.h>
    
    int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    
    {
    // Turns the monitor off
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
    
    // Higher number is longer monitor off.
    Sleep(500);
    
    // Turns monitor on
    SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
    
    return 0;
    }
    You can add such things as changing wallpaper during that the monitor is off. Or open webpages
    Never forget to help people whenever you can

    [C++] Turn monitor on/off (can be used in your minivirus)
  2. #2
    Neth'zul's Avatar Banned
    Reputation
    204
    Join Date
    Nov 2007
    Posts
    887
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works, nice job lol, time to give this to my friend... +repzors

  3. #3
    snipesh0tz's Avatar Member
    Reputation
    16
    Join Date
    Dec 2007
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem.
    U could add things like put it on start-up and change sleep to a higher number.
    He'll get angry
    Never forget to help people whenever you can

Similar Threads

  1. Priest Mind Control bug - can be used to kill bosses.
    By bobtoe in forum WoW EMU Exploits & Bugs
    Replies: 4
    Last Post: 02-06-2008, 05:12 AM
  2. [Problem] I can't use spells or skills on NPC's i make with ADE.
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-04-2008, 10:39 PM
  3. Can't use GM commands. (Broken)
    By Saridormi in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 10-30-2007, 09:06 AM
  4. 14 rep and can't use search button
    By mafiaboy in forum Community Chat
    Replies: 3
    Last Post: 10-29-2007, 03:08 AM
  5. Can You Use Ascent DB With Any Repack?
    By Frosthowl in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 10-09-2007, 04:36 PM
All times are GMT -5. The time now is 11:45 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search