VB.NET Check Windows7 MultiTouch Capability on a Device

This code will check the Multitouch capability of a Hardware for Windows7 Modern Applications

To execute this code you either need to have VS 2008 SP1 with .NET 3.5 or VS 2010 with .NET 4.0
References to the following libraries are to be made:
Windows7.Multitouch.dll
Windows7.Multitouch.WPF.dll.

If Not Windows7.Multitouch.TouchHandler.DigitizerCapabilities.IsMultiTouchReady Then
MsgBox(“Multitouch is not availible”)
Environment.Exit(1)
End If