Swap Mouse Button
| 1 | 
 | 
- RegOpenKeyEx/- RegQueryValueEx/- RegSetValueExis register table function.
- RegCloseKeywhen function above failed release handler.
- SwapMouseButtonused to control which button’s left right.
LPCTSTR
- LLong no actual meaning
- Ppointer
- Cconstant
- Tbase on- UNICODEmacro, define- charor- wchar_t
- STRstring char*
So LPCTSTR almost const char*
If macro not define UNICODE, lead to
const char* value can’t initial LPCTSTR instance class.
Solution
| 1 | #include <tchar.h> | 
or1
LPCWSTR SubKey = L"Control Panel\\Mouse";
_T("ABC") the letter in _T() obtain 2 bytes same as chinese characters.