itunes MobileDevice.dll 的调用有关问题

itunes MobileDevice.dll 的调用问题
最近 要写一个 连接苹果设备的小程序,但是不知道从哪里下手,网上也找了半天 找到一些信息,但是自己做的时候,却出现了问题。
下面是代码

void myam_device_notification_callback(struct am_device_notification_callback_info * info)
{
cout<<info->dev->device_id;
}
int main()
{
HMODULE handle = LoadLibraryA("MobileDevice.dll");
if(handle)
{
AMDeviceNotificationSubscribe funcAMDeviceNotificationSubscribe = NULL;
FARPROC fpFun = GetProcAddress(handle,"AMDeviceNotificationSubscribe");
if(!fpFun)return 0;
funcAMDeviceNotificationSubscribe = (AMDeviceNotificationSubscribe)fpFun;
unsigned int u3 = 1;
struct am_device_notification *notification =  new struct am_device_notification;
mach_error_t ret = funcAMDeviceNotificationSubscribe(myam_device_notification_callback,0,0,
   u3,&notification);
FreeLibrary(handle);
}

return 0;
}

回调函数我设置了,但是好像没有任何反映,有好心人 帮助下吧
------解决方案--------------------
http://www.libimobiledevice.org/
------解决方案--------------------
引用:
http://www.libimobiledevice.org/


用这个吧