I am trying activate/deactivate XMouse on a Windows NT machine (similar to the XMouse check box in TweakUI). I have found the registry key ("HKEY_CURRENT_USER\Control Panel\Mouse\ActiveWindowTracking") and I can change the value there of.
But, I cannot force the necessary refresh to activate/deactivate XMouse. But, after logging out and logging back in, XMouse is set as expected.
So, is there an API call to force the refresh? (Note: I have tried :
::SendMessage (HWND_BROADCAST, WM_SETTINGCHANGE, NULL, NULL);
which does not seem to work.
Do I have to "restart" the mouse device? If so, how?
Any help would be greatly appreciated.