且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows中以编程方式更改光标速度

更新时间:2023-11-30 17:37:16

我不知道有关检测的信息,但是您可以使用P/Invoke来

I don't know about the detection but you can use P/Invoke to the SystemParametersInfo api using

[DllImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SystemParametersInfo(SPI uiAction, uint uiParam, String pvParam, SPIF fWinIni);

,uiAction为( SPI_SETMOUSESPEED ) = 0x0071

with the uiAction as (SPI_SETMOUSESPEED) = 0x0071