I am trying to enable / disable the touch feature in Windows 7 or 8 for my WPF drawing application.
As far as I was looking, the link How to disable all touch input at the application level, window or control level? Gives the correct registry location for sensory ability status.
However, this did not affect on the fly, because the Windows system cannot be confirmed by changes.
Under my assumption, updating User32.dll using SystemParametersInfo is required to make changes without rebooting. But itโs hard to understand how to do this because I donโt know which SPI_something is associated with WISP.
Is there any other way or can you help me do this?
The sample code is as follows (quite similar to the link provided above by the StackOverflow link)
RegistryKey regKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Wisp\Touch", true); if (regKey != null) { regKey.SetValue("TouchGate", 0x00000000); // Turn off touch. regKey.Close(); // NOTIFY REGISTRY CHANGES TO WINDOWS }
source share