更新时间:2023-11-30 17:37:16
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