Mailing Lists: Apple Mailing Lists

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

IOServiceGetMatchingServices() returning empty iterator



Hi,

I copied sample code directly from "Working With HID Class Device Interfaces". It did not work.

 hidMatchDictionary = IOServiceMatching(kIOHIDDeviceKey);
// produced a matching dictionary

ioReturnValue = IOServiceGetMatchingServices(masterPort, hidMatchDictionary, hidObjectIterator);
// returned empty iterator (with no error).


Then I replaced kIOHIDDeviceKey with kIOUSBDeviceClassName and did get an iterator with the new matching dictionary.

My mac has an Apple Keyboard and Apple Mouse. Are they both not HID devices in OS X?

Should I not have obtained an iterator with 2 items in the first case? Is there a problem with IOServiceGetMatchingServices()?

Any Ideas?

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



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.