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!