Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to obtain a device object from a device interface?



At 10:12 -0600 7/10/03, Fernando Urbina wrote:
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?

Sorry, for my confusing question. I am not a USB or HID expert (just an application programmer) so I may have phrased it badly.


1.  Get the kIOHIDLocationID from your HID interface, using the
IORegistryEntryCreateCFProperties( hidDevice, &entryProperties, NULL, 0).

That is exactly the call I would like to make, but I don't have the hidDevice that it takes as the first input parameter. All I have is a handle to the IOHIDDeviceInterface. So I need to have a way to get the hidDevice on the basis of the IOHIDDeviceInterface, if at least that is possible. Once I have my hidDevice I am all set.


I hope this is more clear than my previous attempt at prhasing my problem.

Thanks,

david.
_______________________________________________
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.

References: 
 >Re: How to obtain a device object from a device interface? (From: Fernando Urbina <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.