Пример #1
0
        /// <summary>
        /// Close and Reopen AFC Connection
        /// </summary>
        /// <returns>status from reopen</returns>
        unsafe public void ReConnect()
        {
            int ans = MobileDevice.AFCConnectionClose(hAFC);

            ans = MobileDevice.AMDeviceStopSession(iDeviceHandle);
            ans = MobileDevice.AMDeviceDisconnect(iDeviceHandle);
            ConnectToPhone();
        }