procedure myFind(ss: string);<br> var<br> sr: TSearchRec;<br> begin<br> if not Pn_Hint.Visible then Abort; //控制退出<br><br> RzLabel_H.Caption := GetString('idsearch') + ss;<br> RzLabel_H.Repaint;<br> inc(pCount);<br> if pCount > 5 then<br> begin<br> Application.ProcessMessages;<br> pCount := 0;<br> end;<br> if FindFirst(ss + '/*.*', faAnyFile, sr) = 0 then<br> begin<br> repeat<br> Ext := UpperCase('*' + ExtractFileExt(sr.Name));<br> if (Ext <> '*') and (Ext <> '*.') then<br> if AnsiContainsStr(Exts, Ext) then //判断后缀名<br><br> if IsEn(Pchar(ss + '/' + sr.Name)) = 0 then //判断是否加密<br> begin<br> inc(FCount);<br> if EnFile(Pchar(ss + '/' + sr.Name), 305419890) = 1 then //加密文件<br> begin<br> inc(DCount);<br> Memo1.Lines.Add(ss + '/' + sr.Name);<br> end;<br> end;<br> until FindNext(sr) <> 0;<br> FindClose(sr);<br> end;<br> RzLabel_H_2.Caption := GetString('idfind') + IntToStr(FCount) + ' ' + GetString('idencrypt') + IntToStr(DCount) + ' 个';<br> RzLabel_H_2.Repaint;<br><br> if FindFirst(ss + '/*', faDirectory + faHidden + faSysFile, sr) = 0 then<br> begin<br> repeat<br> if (sr.Attr and faDirectory) = faDirectory then<br> if (sr.Name[1] <> '.') then<br> begin<br> myFind(ss + '/' + sr.Name);<br> end;<br> until FindNext(sr) <> 0;<br> FindClose(sr);<br> end;<br> end;<br><br>这是我用改的那个函数,现在要求把 FindFirst 改为 FindFirstFile,改怎么弄