On 10/7/03 6:56 AM, "David Niemeijer" <email@hidden> wrote:
> If I have a HID Device Interface (IOHIDDeviceInterface), is there a
> straightforward way to obtain a reference to the device (io_object_t)
> itself?
>
I'm not sure what you want. Do you want to get a IOUSBDeviceInterface for
the device that has the IOHIDDeviceInterface?
If so, this is what I did when I needed that:
1. Get the kIOHIDLocationID from your HID interface, using the
IORegistryEntryCreateCFProperties( hidDevice, &entryProperties, NULL, 0).
2. Have a function that returns an IOUSBDeviceInterface, e.g.
FindUSBDeviceForLocationID( locationID ). This function will create a
matching dictionary for all USB devices (just use kIOUSBDeviceClassName) and
then interate through all of them until you find the one that has the same
locationID.
Hope this helps.
--
Fernando Urbina mailto:email@hidden
USB Technology Team work: 719.534.9387
Apple Computer, Inc. fax: 719.532.0981
_______________________________________________
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.