I am designing a touch driver for windows 7 .
Windows 7 has a mechanism to associate your touch screen with a particular display, see “Tablet PC Settings”->Configure .
What i want to do is ,change the tablet pc settings using c/c++ so that i am able to change if the input goes to primary monitor or secondary monitor . Is there any way in which we can change the settings using C/C++ are they stored in registry somewhere or somewhere else ? . If yes , how can i modify it .
See Here.Once you detect you have to just check the installMode.If install its value would 1 otherwise 0.
There is a list of Registry function which you can use in c++.
The touch screen registry stores information necessary to configure the behavior of the touch screen.
The HKEY_LOCAL_MACHINE\Hardware\DeviceMap\Touch registry key is required to configure the touch screen. The following table shows the named values for the Touch configuration parameters.
For Info See here