title: Programmatically change cursor speed in windows
body: <p>Since getting a satisfactory answer on <a href="https://superuser.com">SuperUser</a> is very difficult, I want to rephrase <a href="https://superuser.com/questions/124426/mouse-and-touchpad-move-at-different-speeds">this question</a> and ask:</p>
  
  <p>Is there any way to programmatically detect a mouse was plugged in the usb port, and change the cursor speed in windows (perhaps through an API)?</p>
  
  <p>I'd like to use C#, but I'm open to any language that can run on a windows 7 machine.</p>