views:

83

answers:

1

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?

A: 

Windows 7 exposes this via GetSystemMetrics(SM_MAXIMUMTOUCHES). Since you need this in C#, and I'm not a C# developer, you would need to P/Invoke this:

[DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
public static extern int GetSystemMetrics(int nIndex);

SM_MAXIMUMTOUCHES = 95.

Eric Brown