Windows 7 reports the number of touch points available to the system under the computer properties - is there a way to get that info in .NET 4?
Asked
Active
Viewed 766 times
1 Answers
2
Windows 7 exposes this via GetSystemMetrics(SM_MAXIMUMTOUCHES). Since you need this in C#, you need to use P/Invoke:
[DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]
static extern int GetSystemMetrics(int nIndex);
const int SM_MAXIMUMTOUCHES = 95;
int GetPointsAvailable()
{
return GetSystemMetrics(SM_MAXIMUMTOUCHES);
}

Chris Pietschmann
- 29,502
- 35
- 121
- 166

Eric Brown
- 13,774
- 7
- 30
- 71