//Iterate over set of matching devices to access already-present
devices
//and to arm the notification
DeviceAdded(NULL,gAddedIter);
//Notification of termination:
kr = IOServiceAddMatchingNotification(gNotifyPort,
kIOTerminatedNotification,
matchingDict,
DeviceRemoved,
NULL,
&gRemovedIter);
//Iterate over set of matching devices to release each one and to
//arm the notification
DeviceRemoved(NULL, gRemovedIter);
When my device is connected, DeviceAdded() is called. When it is
disconnected, DeviceRemoved() is called. If I re-attach the device,
DeviceAdded() is not called, but when I re-connect, DeviceAdded() is
not called.... although when I disconnect is, DeviceRemoved() is
called again.
Thanks,
Eric Smith _______________________________________________
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