repo.or.cz
/
lefthand.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(no commit message)
[lefthand.git]
/
lefthand.c
blob
f9603951a0ff6d1acf8f74a765db6ea117087555
1
#include <windows.h>
2
3
int
main
() {
4
DWORD dwOne
=
1
;
5
HKEY hkMouse
;
6
7
SwapMouseButton
(
TRUE
);
8
if
(!
RegCreateKeyEx
(
HKEY_CURRENT_USER
,
"Control Panel
\\
Mouse"
,
0
,
NULL
,
9
0
,
KEY_SET_VALUE
,
NULL
, &
hkMouse
,
NULL
))
10
RegSetValueEx
(
hkMouse
,
"SwapMouseButtons"
,
0
,
REG_DWORD
, (
LPBYTE
)&
dwOne
,
sizeof
(
DWORD
));
11
}