hansschmucker / NVStreamer1080

Utility to automatically detect NVidia GameStream activity and set a fitting resolution or switch to a second screen.
Apache License 2.0
111 stars 8 forks source link

Restore the state of "Enhance Pointer Precision" in Windows #4

Closed SuperLeiyan closed 2 years ago

SuperLeiyan commented 2 years ago

This always gets turned on when nvstream starts, and for those who prefer it off, it's annoy to have to manually toggle it off after every stream session, it would be cool if this utility could restore the state of this too. image

hansschmucker commented 2 years ago

That should be doable via http://www.pinvoke.net/default.aspx/user32/SystemParametersInfo.html ... not sure if it needs admin rights though. I'll check.

hansschmucker commented 2 years ago

Release.zip

First whack at this. If I'm not mistaken this needs admin rights so I'll probably hide it in the release until I decided on how to do process elevation... or maybe I'll simply hide the option unless you're starting it as administrator.

Since I don't have this issue I'm very happy about any feedback ^^

--hans

hansschmucker commented 2 years ago

Just released. It's only visible if you launch with admin rights. Closing.