I am attempting to enable/disable the ClickLock accessibility option using the SystemParametersInfo API function. The problem I am having is that no matter what I put in uiParam and pvParam, I it enables ClickLock (I test it with SPI_GETMOUSECLICKLOCK and by looking in the Mouse properties in Control Panel).
Here's an example; this is how I thought it should work based on MSDN:
retval = SystemParametersInfo(SPI_S
CKLOCK, False, 0, SPIF_SENDWININICHANGE Or SPIF_UPDATEINIFILE)
but that ENABLES it, which makes no sense. I made a huge function that would try every combination of 1, 0, true, false, boolean vars, integer vars, and every single one enables the feature. I hope that I'm just doing something wrong, and not that it is impossible to do because of a bug or something.
I am using Windows XP (the feature is supposed to work in XP and ME). Here is the MSDN page I have been using as a reference http://msdn.microsoft.com/library/en-us/sysinfo/base/systemparametersinfo.asp
Any help is very appreciated!