Пример #1
0
        /// <summary>
        /// 获取访问时间
        /// </summary>
        /// <param name="nIndex">结果序号</param>
        /// <param name="dtFileTime">访问时间</param>
        /// <returns>执行结果</returns>
        public static bool CF_GetResultDateAccessed(uint nIndex, out DateTime dtFileTime)
        {
            bool result;

            try
            {
                long lpDateCreated;
                if (CP_Platform == EPlatform.X86)
                {
                    result = ModEverything32.Everything_GetResultDateAccessed(nIndex, out lpDateCreated);
                }
                else
                {
                    result = ModEverything64.Everything_GetResultDateAccessed(nIndex, out lpDateCreated);
                }

                dtFileTime = DateTime.FromFileTime(lpDateCreated);
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(result);
        }