In the code that follows I tried comnenting out these three lines. My question is: What is the correct way to set up a dictionary for IOServiceAddMatchingNotification that will match on just the Vendor ID? My code which sets up the matching is show below. I have some code already that works by matching the Vendor ID and the product ID, but when I remove the product ID from the matching dictionary, so that I can match ANY product from that vendor, it stops giving me any notifcations at all. In my App I would like to get a notification whenever any device from a particluar vendor gets attached to USB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |