你找的函数应该是
BOOL WINAPI SystemParametersInfo(
_In_ UINT uiAction,
_In_ UINT uiParam,
_Inout_ PVOID pvParam,
_In_ UINT fWinIni
);
其中uiAction等于SPI_SETMOUSESPEED时是设置全局鼠标移动速度, 等于SPI_GETMOUSESPEED时是获得当前鼠标移动速度. 参考: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx