public static extern Int32 NetClient_NetFileDownloadByTimeSpanEx(ref UInt32 _uiConID, Int32 _iLogonID, string _cLocalFilename, Int32 _iChannelNO, ref NVS_FILE_TIME _uiFromSecond, ref NVS_FILE_TIME _uiToSecond, Int32 _iFlag, Int32 _iPosition, Int32 _iSpeed);
public PlayForm(CLIENTINFO clientinfo, int iRealChannel, NVS_FILE_TIME Starttime, NVS_FILE_TIME EndTime, BaseForm parentfrm) : base(parentfrm) { InitializeComponent(); m_iDownloadType = 1; m_ClientInfo = clientinfo; m_iRealChannel = iRealChannel; m_begintime = Starttime; m_endtime = EndTime; }
public static long NvsFileTimeToAbsSeconds(NVS_FILE_TIME nvstime) { long iTime = 0; DateTime dtTime = new DateTime(nvstime.m_iYear, nvstime.m_iMonth, nvstime.m_iDay, nvstime.m_iHour, nvstime.m_iSecond, nvstime.m_iMinute); double dTime = ConvertDateTimeToInt(dtTime); try { iTime = Convert.ToInt64(dTime); } catch (System.Exception ex) { return(iTime); } return(iTime); }