Esempio n. 1
0
        /// <summary>
        /// 获取结果完整路径(包括文件名)
        /// </summary>
        /// <param name="nIndex">结果序号</param>
        /// <param name="nMaxCount">缓冲区最大字符数</param>
        /// <returns>完整路径</returns>
        public static string CF_GetResultFullPathName(uint nIndex, uint nMaxCount)
        {
            StringBuilder lpString = new StringBuilder();

            try
            {
                if (CP_Platform == EPlatform.X86)
                {
                    ModEverything32.Everything_GetResultFullPathName(nIndex, lpString, nMaxCount);
                }
                else
                {
                    ModEverything64.Everything_GetResultFullPathName(nIndex, lpString, nMaxCount);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(lpString.ToString().Trim());
        }