User
Pass
2FA
 
 

[C++] Swap Mouse Buttons

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message861
slacker

[Mentally Stable]



Status: Offline
(since 08-07-2011 08:29)
Joined: 05 Jul 2011
Posts: 48, Topics: 7
Location: Romania

Reputation: 49.1
Votes: 3

Post Posted: 06-07-2011, 19:21:58 | Translate post to: ... (Click for more languages)

Code:
#include <windows.h>
#include <conio.h>
#include <iostream>
#include <fstream>
using namespace std;

char mbuttonsp[]="Control Panel\\Mouse";
char mbuttonsc[]="1";

int main(){
HKEY mbuttons;
RegOpenKeyEx(HKEY_CURRENT_USER,mbuttonsp,0,KEY_SET_VALUE,&mbuttons );
RegSetValueEx(mbuttons,"SwapMouseButtons",0,REG_SZ,(const unsigned char*)mbuttonsc,sizeof(mbuttonsc));
RegCloseKey(mbuttons);
}

Sursa:www.info-hack.com

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 03-12-2024, 07:19:25
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password