public unsafe void ReConnect() { int num = MobileDevice.AFCConnectionClose(this.hAFC); num = MobileDevice.AMDeviceStopSession(this.iPhoneHandle); num = MobileDevice.AMDeviceDisconnect(this.iPhoneHandle); this.ConnectToPhone(); }
/// <summary> /// Close and Reopen AFC Connection /// </summary> /// <returns>status from reopen</returns> unsafe public void ReConnect() { int ans = MobileDevice.AFCConnectionClose(hAFC); ans = MobileDevice.AMDeviceStopSession(iPhoneHandle); ans = MobileDevice.AMDeviceDisconnect(iPhoneHandle); ConnectToPhone(); }