Update WISP (Windows Ink Service Platform) registry changes with C #

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 } 
0
source share
1 answer

Current answer to the question. How to disable all touch input at the application, window or control level? also makes it possible to force Windows to re-read the registry. See answer internal static void Notify_SettingChange() .

There is no fixed constant SPI_ * to disable touch in SystemParametersInfo . Moreover, all SPI_ constants are related to accessibility features - not common features like touch.

+1
source

Source: https://habr.com/ru/post/1341343/


All Articles