Actually, the cookies are not persistent and have changed in past
releases. It turns out that they were originally tied to the order
in which the HID parser read the descriptor. Any changes to the
descriptor parser would have changed the cookie assignments.
Therefore, like Andrew mentioned, it is probably not a good idea to
hardcode these values.
- Rob
On Jul 19, 2005, at 10:41 PM, Andrew Garber wrote:
Yes, the cookies are permanently set in the device's hardware. I
wouldn't suggest har-coding them though. Try using
IOHIDDeviceInterface122's copyMatchingElements instead of
IORegistryEntryCreateCFProperties. I think you'll find that it's more
efficient than trying to recurse through the properties tree yourself.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden