Mailing Lists: Apple Mailing Lists

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

What's currently plugged in?




Hi all,

    If I just wanted to see which devices were currently plugged in, is there a quick method to do that.  I can already create the usual notification system for when devices are plugged in and then removed, but I was wondering if there was a way to easily get just a list of vendor/product id's without going through the bother of creating notification ports and the like.

    Also, I noticed what might be a small typo in one of the online docs: http://developer.apple.com/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/chapter_3_section_3.html#//apple_ref/doc/uid/TP40002645-BBIDDHCI

    Currently reads:

    /Notification of termination:
    kr = IOServiceAddMatchingNotification(gNotifyPort,
                    kIOTerminatedNotification, matchingDict,
                    RawDeviceRemoved, NULL, gRawRemovedIter);


    Looks like this should be "&gRawRemovedIter" not just "gRawRemovedIter".


    One gets a nice bus error without it. Of course, you would be quite right to point out that the "cut and paste" method is what caused me the trouble in the first place! :-)


Thanks in advance for any pointers on the first point.

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