title: How to detect if barcode scanner is attached to PC
body: <p>I am writing an application which detects if any bar-code scanner is attached to the pc or not. I don't know how to query the installed devices to check for barcode scanners. I am using C# and .NET 4.0. </p>