Hi Keithen,
Thanks a lot for that extra info. I'm aware that there's a number of
ways to get this particular string, including simply using the
IOKitRegistry itself via IORegistryEntryGetName then using a CFShow, but
I'm trying to explore the whole USB system as fully as possible from the
ground up. This sort of info really helps me get a deeper understanding
of what's going on, thanks!
ben
On Friday, March 15, 2002, at 10:13 PM, Keithen Hayenga wrote:
I wanted to add just a bit to what Barry said. In the OSX IOUSBFamily,
the IOUSBHIDDriver contains calls such as GetManufacturerString,
GetProductString, and GetSerialNumberString. While these are not yet
available from user space, looking at the code shows that they resolve
down to IOUSBDevice::GetStringDescriptor which not only gets the raw
unicode string, but converts it to a regular, null terminated string
that is suitable for display, and leaves it in a buffer that you
provide.
-Keithen
At 10:44 AM -0800 3/11/02, Barry Twycross wrote:
At 1:04 AM +0000 3/11/02, hotblack wrote:
When issuing the USBGetManufacturerStringIndex call (and others that
use UInt8 indices) how do I display the string? Where is the string
actually stored?
The string is stored in the device. It is retrieved by a
GET_DESCRIPTOR device request, see chapter 9 of the USB spec. The
string is in Unicode format.
How you'd do anything about this in X I don't know yet.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.