On Wed, May 23, 2012 at 4:43 AM, Pete Batard <p...@akeo.ie> wrote:
> On 2012.05.23 03:17, Yves Arrouye wrote:
> > I double-checked the actual OS X API (the 32 bits comes from one of
> > their samples). It seems like the underlying object is actually an
> > OSNumber, which is a wrapper for a kernel number of 8, 16, 32 or 64
>
> OK, then at the very least we'll need something 64 bit in size, or a
> pointer to something that can be 64 bit.
>
> > Is the Windows string something that would map to a 64-bit
> > number? It would seem it would be if I understand correctly the
> > discussions about the device path being of depth 7 at most.
>
> Well, unless you're talking about the port topological ID ("device is
> plugged on port 1 of a hub that is plugged on port 3 of a hub that is
> plugged on port 2 of an HCD that is mapped to bus #4"), which doesn't
> uniquely identify a device and isn't what the OS uses, what we're
> talking about is a device interface path, which on Windows is something
> like: "\\.\USB#VID_045E&PID_0289#7&1ABB1A1B&0&1"
>
Note that if a device has a serial number (and perhaps other reasons), the
device interface path won't look like that. EG (as shown in device
manager):
USB\VID_07D1&PID_3300\00E04C000001
USB\VID_10C4&PID_EA60\0567000D71F9
for a couple of devices on my system here.
BTW, depending on the OS and which API gives it to you, the \\. might be
\\? and the characters may be upper or lower case. The OS is happy to open
the device with upper or lower case, so you can force it to whichever you
please.
Orin.
------------------------------------------------------------------------------
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