Windows 7 provides this through 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);
}
source
share