Mailing Lists: Apple Mailing Lists

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

Trouble opening device interface...



I'm trying to open the device interface for my USB device and I wrote some code to do it

    ioReturnValue = IOCreatePlugInInterfaceForService ( usbDevice ,
                                                kIOUSBDeviceUserClientTypeID ,
                                                kIOCFPlugInInterfaceID ,
                                                &plugInInterface ,
                                                &score );

The error I get is 0xe00002c7, which I don't understand in this context. It's a valid USB device and it has a device interface. If I substitute HID for USB 

    ioReturnValue = IOCreatePlugInInterfaceForService ( usbDevice ,
                                                kIOHIDDeviceUserClientTypeID ,
                                                kIOCFPlugInInterfaceID ,
                                                &plugInInterface ,
                                                &score );

the code works fine. But I don't have access to the nifty routines to get the report I need from the device. What am I doing wrong?
 _______________________________________________
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

This email sent to 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.