title: How to disable mouse scroll wheel button permanently
body: <p>I have a question that's bothering me. So I have a friend whose mouse scroll wheel just broke, but not mechanically, it's just went crazy - scrolling by itself without any input. I wrote a simple c++/batch program, which asks you if you wanna disable scroll button by modifying values in registry: </p>
  
  <pre><code>reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WheelScrollChars" /t REG_SZ /d 0 /f
  reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v "WheelScrollLines" /t REG_SZ /d 0 /f
  </code></pre>
  
  <p>Unfortunately, it works only in some applications e.g. chrome. Like when he opens Adobe Premiere or any additional software, the scroll actually is not disabled - it keeps scrolling by itself randomly up and down. Yeah, I know that's not a problem to buy a new mouse, but I'm just curious if there's any other way around it. And I found a piece of software called X-Mouse Button Control (written in C/C++ I guess), which actually have an option to disable scrolling permanently but it only works while program is running. I tried to reverse its binary in IDA although couldn't find actual function used to disable scrolling in whole system, not just couple of Windows apps. </p>
  
  <p>So I thought I'd ask, maybe you have some ideas if there are possibilities in C++ to make it disabled in whole Windows (within any application running)? I guess if someone did it via this software, X-Mouse Button Control, it's probably possible but I haven't found anything yet. Anyway, any help is much appreciated and I'm looking forward to your replies, thanks!</p>