Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Imports System.Runtime.InteropServices
  2.  
  3. Namespace MouseSpeedSwitcher
  4. Class Program
  5. Public Const SPI_SETMOUSESPEED As UInt32 = &H71
  6.  
  7. <DllImport("User32.dll")> _
  8. Private Shared Function SystemParametersInfo(uiAction As UInt32, uiParam As UInt32, pvParam As UInt32, fWinIni As UInt32) As [Boolean]
  9. End Function
  10.  
  11. Private Shared Sub Main(args As String())
  12. SystemParametersInfo(SPI_SETMOUSESPEED, 0, UInteger.Parse(args(0)), 0)
  13. End Sub
  14. End Class
  15. End Namespace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement