// Note bytes will be swapped (USB is little endian)
SwapUniCodeBytes(descStrPtr, uniStrLen);
// now create a CFString from the UTF-16 bytes
...
}
delete [] stringDescriptor;
}
--Ron
On Jan 19, 2004, at 9:58 PM, Ashley Butterworth wrote:
Hi,
I am writing a program that lists all of the devices attached to the
computer via usb and details about them (similar to USBProber) so that
people can choose the device they have designed containing a FTDI232BM
USB to Serial chip and program their vendor id, product id and other
information into the onboard EEPROM.
So far I have obtained the list of all of the devices on the bus and
from them most of the information I need but I also want to get the
Manufacturer, Product and Serial Number strings.
So far I have got the string indicies for the 3 strings but I don't
know what to do next. I have looked at the docs on the developer
website but I have only found how to do it from within the kernal. How
do I, from my carbon app written in C, obtain a copy of the strings?
Thanks for any help,
Regards,
Ashley
========================================================
Ashley Butterworth
BLUEsat Project
Website: http://www.bluesat.unsw.edu.au/
Email: email@hidden
Mobile: 0403-979-560
BLUEsat Office: +61 (0)2 9385-4498
BLUEsat Fax: +61 (0)2 9385-5993
========================================================
_______________________________________________
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.
_______________________________________________
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.