Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to detect the difference between a keyboard and a barcode reader, I managed to list the USB devices, and found the difference in serial number, and I also want to display the brand of each device, and I need your help at this level, thank you
Posted

Usually a barcode reader will apply or can be setup to apply a custom 'marker' at the pre- and post- ends of the data.

You can then use this to determine where the data has come from by checking for this marker.

As for identifying the hardware, you would need to know the various hardware ID's for the types of device you want to check for, and you should be able to get those from the OEM.

I dare say if you look hard enough on google, somewhere someone will already have compiled a list of the common ones, after all there are lists of eveything else out there :)
 
Share this answer
 
I've been having a similar problem, here is my thread on StackOverflow.

Device properties can be bought into C# code using the WMI interface. Coupled with a WMI browser, you should be all set.

Rabit
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900