//modify public int Login(string name, string pwd, string server1, string langID) { try { LogManager.SystemLog.Debug(string.Format("Start Login")); int iRet = UCInterface.UC_SDK_Init(); UCInterface.UC_SDK_SetLoginEventCB(clientSignInNotifyCB); UCInterface.UC_SDK_SetCallEventCallBack(avSessionClosedCB, avSessionConnectedCB, avSessAddedCB); UCInterface.UC_SDK_SetStatusChangedCB(statusChangedCB); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("Start Login error {0}", iRet)); return(iRet); } iRet = UCInterface.UC_SDK_SignInByPWD(name, pwd, server1, langID); LogManager.SystemLog.Debug(string.Format("End Login")); return(iRet); } catch (System.Exception ex) { LogManager.SystemLog.Error(ex.ToString()); return(-1); } }