C# .NET 4-确定Win 7中可用的接触点数量
Windows 7在“计算机属性”下报告系统可用的触点数量-是否有办法在.NET 4中获取该信息?Windows 7通过(SM_MaximumTouchs)公开此信息。由于在C#中需要此函数,因此需要使用P/Invoke:C# .NET 4-确定Win 7中可用的接触点数量,c#,windows-7,.net-4.0,multi-touch,C#,Windows 7,.net 4.0,Multi Touch,Windows 7在“计算机属性”下报告系统可用的触点数量-是否有办法在.NET 4中获取该信息?Windows 7通过(SM_MaximumTouchs)公开此信息。由于在C#中需要此函数,因此需要使用P/Invoke: [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] static extern int GetSystemMetrics(int nIndex); const int SM_MAXI
[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);
}