开发者

how to programmatically turn on or off mouse filter in windows xp

subject is to turn on or off mouse filter. I found all api's configuri开发者_运维技巧ng mouse except mouse filter, where is it?


if (needToOff())
    {
        deb("mouse filter: off");

        mouseAccel.MouseSpeed = mouseAccel.MouseThreshold1 = mouseAccel.MouseThreshold2 = 0;
        SystemParametersInfo(SPI_SETMOUSE, 0, &mouseAccel, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
    }
    else
    {
        deb("mouse filter: on");
        mouseAccel.MouseSpeed = 1;
        mouseAccel.MouseThreshold1 = 6;
        mouseAccel.MouseThreshold2 = 10;
        SystemParametersInfo(SPI_SETMOUSE, 0, &mouseAccel, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜