How to configure mouse enhance pointer precision programmatically in C++?
I know that have some useful commands like SystemParametersInfo, for speed, ...
This discussion has a bit more information. It has a macro which seems to do what you're looking for. It should be pretty straightforward to convert to C++; it's just a couple DLL calls.