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?
Hi Andy,
I'd get the CFPlugIn interface for the IOService and then use that
interface with i.e. GetStringDescriptor(index,char *buf,int
maxLen,UInt16 lang=0x409) method.
Look for IOUSBDevice and IOUSBInterface. You can also make device
request via DeviceRequest method which is very similar to the OS 9
way.
-Tomas
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hiddenhttp://www.24uSoftware.com
_______________________________________________
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.