Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I know vb can communicate with serial ports. And it works with a device that provides an address like COM1, COM2 and so on..

But my project is about keyboards and barcode scanners which doesn't provide address like COM1.
I want to detect the address of these keyboards. Because I want to use one of the keyboards connected and get its port address and then the program will automatically know which keyboard is being used. (note: all of my keyboard is identical)

First, I want to know if is it possible to get the USB port addresses. If so,
second is I want to know what LIBRARY that I need to import and what are the functions I must declare.

I have my codes done. And this is only the missing code. As I have said, I'm not sure if this is possible. I hope it does. Thanks!
Posted
Comments
DamithSL 25-Feb-15 9:50am    
Philippe Mori 25-Feb-15 12:22pm    
As far as I know, this is not possible except if you would write your own driver... That kind of information is not available at API level and much less at .NET level.

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