Hi Sandor, On 2012.05.29 13:35, Sandor Otvos wrote: > How can i obtain device instance string > ( \\.\USB#VID_413C&PID_8158#7&1C3A6C5&0&2 ) with libusb ? > I tried xusb, and libusbx can print it, if some problem occured. So this > string is internally stored.
We have had a request to provide OS-dependent location ID recently, and logged libusbx enhancement #24 as a result [1]. We may decide to implement this with API 2.0, but this will be a long time away. > The reason, i need this string , to distinguish more identical devices > with equal VID/PID and these devices has no serialnumber at all. > With setupAPI i can query instance string , and HUB and PORT location as > well. The new topology API calls (libusb_get_port_number or libusb_get_port_path - see the libusb.h from the latest libusbx git) could probably be used to achieve what you want. Can you clarify why you need to distinguish these devices for? How do you plan to use them? Regards, /Pete [1] https://sourceforge.net/apps/trac/libusbx/ticket/24 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel