Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to create application that get notified each time I plug or unplug USB, and also can get access to it. For start, I tried to use USBPrivateDataSample application as example:

http://developer.apple.com/library/mac/#samplecode/USBPrivateDataSample/Listings/USBPrivateDataSample_c.html#//apple_ref/doc/uid/DTS10000456-USBPrivateDataSample_c-DontLinkElementID_4

In order to compile it I changed SDK to 10.6 since 10.4 is not supported on Snow Leopard. The program is compiled and runs successfully, however, I do not receive calls/events when the USB is plugged in. In other words, function DeviceAdded is never called.

Does this program supposed to work in Snow anyway? It looks old, maybe some calls are deprecated?

Can someone suggest other way to receive USB devices notifications?

Thanks!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900