亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filesearch.pas

?? 可以使用硬件指紋作為密鑰加密文件
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
    FileInfosRef.Time.CreationTime.wHour         := 0;
    FileInfosRef.Time.CreationTime.wMinute       := 0;
    FileInfosRef.Time.CreationTime.wSecond       := 0;
    FileInfosRef.Time.CreationTime.wMilliseconds := 0;
    { Access Date }
    FileInfosRef.Time.AccessTime.wHour         := 0;
    FileInfosRef.Time.AccessTime.wMinute       := 0;
    FileInfosRef.Time.AccessTime.wSecond       := 0;
    FileInfosRef.Time.AccessTime.wMilliseconds := 0;
    { Write Date }
    FileInfosRef.Time.WriteTime.wHour         := 0;
    FileInfosRef.Time.WriteTime.wMinute       := 0;
    FileInfosRef.Time.WriteTime.wSecond       := 0;
    FileInfosRef.Time.WriteTime.wMilliseconds := 0;

    { Convert Time  format }
    CreationTime := SystemTimeToDateTime(FileInfosRef.Time.CreationTime);
    AccessTime   := SystemTimeToDateTime(FileInfosRef.Time.AccessTime  );
    WriteTime    := SystemTimeToDateTime(FileInfosRef.Time.WriteTime   );

    { switch DateFilter }
    case DateOptions.DateFilterKind of
      { Check between 2 date}
      dfkBetween:
      begin
        if (CreationTime>=DateOptions.FirstDate) and (CreationTime<=DateOptions.SecondDate) then CreationOk := True;
        if (AccessTime  >=DateOptions.FirstDate) and (AccessTime  <=DateOptions.SecondDate) then AccessOk   := True;
        if (WriteTime   >=DateOptions.FirstDate) and (WriteTime   <=DateOptions.SecondDate) then WriteOk    := True;
      end;
      { Check before }
      dfkBefore:
      begin
        if CreationTime<DateOptions.FirstDate then CreationOk := True;
        if AccessTime  <DateOptions.FirstDate then AccessOk   := True;
        if WriteTime   <DateOptions.FirstDate then WriteOk    := True;
      end;
      { Check after }
      dfkAfter  :
      begin
        if CreationTime>DateOptions.FirstDate then CreationOk := True;
        if AccessTime  >DateOptions.FirstDate then AccessOk   := True;
        if WriteTime   >DateOptions.FirstDate then WriteOk    := True;
      end;
      { Check the same }
      dfkSame:
      begin
        if CreationTime=DateOptions.FirstDate then CreationOk := True;
        if AccessTime  =DateOptions.FirstDate then AccessOk   := True;
        if WriteTime   =DateOptions.FirstDate then WriteOk    := True;
      end;
    end;

    { switch filter access king }
    case DateOptions.FilterAccessKind of
      { On Creation Time }
      dfakCreatedFiles : if CreationOk=True then DateFilterOk := True;
      { On Write Time }
      dfakModifiedFiles: if WriteOk=True then DateFilterOk := True;
      { On Access Time }
      dfakOpenedFiles  : if AccessOk=True then DateFilterOk := True;
      { On any file }
      dfakAnyFiles     : if (CreationOk=True) or (AccessOk=True) or (WriteOk=True) then DateFilterOk := True;
    end;
  end;

  Result := DateFilterOk;

end;

{*****************************************************************************
 * Procedure : TFileSearch.IsSizeOk
 * Purpose   : Check (if size filter is activate) if the file match with
 *             the filter
 * Arguments : FileInfos  > File informations
 *             SizeFilter > Size Filter options
 * Result    : Return true if the file match
 *****************************************************************************
 * Alexandre GAMBIER (27/09/2002) : Creation
 *****************************************************************************}
function TFileSearch.IsSizeOk(FileInfos : TFileInformations; SizeFilter : TSizeFilter) : Boolean;
var
  SizeFilterOk : Boolean;
begin
  { Check if filter on Size is activate }
  if SizeFilter.FilterOnSize=False then SizeFilterOk := True else
  begin
    SizeFilterOk := False;

    case SizeFilter.SizeFilterKind of
      { Smaller or equal to }
      sfkSmallerOrEqualTo: if FileInfos.Size<=SizeFilter.Size then SizeFilterOk := True;
      { Bigger or equal to }
      sfkBiggerOrEqualTo : if FileInfos.Size>=SizeFilter.Size then SizeFilterOk := True;
    end;
  end;

  Result := SizeFilterOk;
end;

{*****************************************************************************
 * Procedure : TFileSearch.IsFileMatching
 * Purpose   : Check if the filename matches whith the filenames filter
 * Arguments : FileName       > Filename to match
 * Result    : Returns True if matching, False if not
 *****************************************************************************
 * Alexandre GAMBIER (28/10/2002) : Creation
 *****************************************************************************}
function TFileSearch.IsFileMatching(FileName : String) : Boolean;
var
  VerifMask    : TMask;
  FileMatching : Boolean;
  Pos          : Integer;
begin
  FileMatching := False;
  Pos          := 0;

  while (FileMatching=False) and (Pos<FileNames.Count) do
  begin
    { Initialize }
    VerifMask := TMask.Create(FileNames.Strings[Pos]);
    { Check}
    FileMatching := VerifMask.Matches(FileName);
    { Free }
    VerifMask.Free;
    { Next FileName }
    Inc(Pos);
  end;

  Result := FileMatching;
end;

{*****************************************************************************
 * Procedure : TFileSearch.IsAllFileMarkerPresents
 * Purpose   : Check if the marker *.* is present in the Filenames
 * Arguments : FileNamesMatch > filenames to check
 * Result    :
 *****************************************************************************
 * Alexandre GAMBIER (28/10/2002) : Creation
 *****************************************************************************}
function TFileSearch.IsAllFileMarkerPresents : Boolean;
var
  Index : Integer;
begin
  Result := FileNames.Find('*.*', Index);
end;

{*****************************************************************************
 * Procedure : ExcludeFile
 * Purpose   : Check if the file must be exclude
 * Arguments : FileInfos  > File informations
 *             Exclude    > exclude filter
 * Result    : True if the file must be exclude
 *****************************************************************************
 * Alexandre GAMBIER (14/10/2002) : Creation
 *****************************************************************************}
function TFileSearch.ExcludeFile(FileInfos : TFileInformations; Exclude : TStringList) : Boolean;
var
  VerifMask   : TMask;
  PosFilter   : Integer;
  MustExclude : Boolean;
begin
  { Init }
  MustExclude := False;
  PosFilter   := 0;

  { Check each exclude filter }
  while (MustExclude=False) and (PosFilter<Exclude.Count) do
  begin
    { Initialize }
    VerifMask := TMask.Create(Exclude.Strings[PosFilter]);
    { Check}
    MustExclude := VerifMask.Matches(FileInfos.Name);
    { Free }
    VerifMask.Free;
    { Next filter }
    Inc(PosFilter);
  end;

  Result := MustExclude;
end;

{*****************************************************************************
 * Procedure : TFileSearch.Search
 * Purpose   : Search files & folder using Search criteria
 * Arguments : NONE
 * Result    : True si ok
 *****************************************************************************
 * Alexandre GAMBIER (24/09/2002) : Creation
 * Alexandre GAMBIER (14/10/2002) : Add exclude filters
 * Alexandre GAMBIER (28/10/2002) : 1/ Add FoundInNbPath in the statistics
 *****************************************************************************}
function TFileSearch.Search : Boolean;
var
  bAcceptFile : Boolean;
  bCont       : Boolean;
  bNewPath    : Boolean;
  bStop       : Boolean;
  bFirstPass  : Boolean;
  ListePath   : TStringList;
  sPathName   : String;
  sFiltreOk   : String;
  stFindData  : TSearchRec;
  FileInfos   : TFileInformations;
  Stats       : TStatistics;
  StartTime   : LongWord;
  IncludeFile : Boolean;

Begin
  Result := true;

  { Initialize variables }
  ListePath    := TStringList.Create;
  bCont        := True;
  bFirstPass   := True;
  sPathName    := RootPath;
  { Initialize statistics }
  Stats.NbFilesFound   := 0;
  Stats.FoundInNbPath  := 0;
  Stats.NbPathFound    := 0;
  Stats.TimeNeeded     := 0;

  StartTime := GetTickCount();

  { Search... }
  while bCont=True do
  begin
    bNewPath := True;
    { Search in folder found previous pass }
    if bFirstPass=False then
    begin
      if ListePath.Count=0 then bCont := False
      else
      begin
        { Get PathName }
        sPathName := ListePath.Strings[0];
        ListePath.Delete(0);
      end;
    end;

    if bCont=True then
    begin
      { Alert about folder change }
      if assigned(OnChangeFolder)=True then OnChangeFolder(sPathName);

      { Initialize filter mask }
      if sPathName[Length(sPathName)]<>'\' then sPathName := sPathName + '\';
      sFiltreOk := sPathName + '*.*';

      { Start search operation for current folder }
      if FindFirst(sFiltreOk, faAnyFile, stFindData)=0 then
      begin
        bStop := False;
        { Look for each files & folder }
        while bStop=False and bCont=True do
        begin
          if (stFindData.Name<>'.') and (stFindData.Name<>'..') then
          begin
            { Save folder name for next pass - if options is set }
            if ((stFindData.Attr and faDirectory)<>0) and (SearchOptions.IncludeSubfolder=True) then ListePath.Add(sPathName+stFindData.Name);

            { Initialize file informations }
            FileInfos := GetFileInformations(sPathName, stFindData);

            { Include File ? }
            IncludeFile := False;
            if IsAttributesOk(stFindData.Attr)=True then IncludeFile := True;
            if (SearchOptions.LookForAnyFile=True) and ((stFindData.Attr and faDirectory)=0) then IncludeFile := True;
            { Verify Date filter }
            if IsDateOk(FileInfos)=False then IncludeFile := False;
            { Verify Size filter }
            if IsSizeOk(FileInfos, SizeOptions)=False then IncludeFile := False;
            { Exclude File ? }
            if ExcludeFile(FileInfos, ExcludeFilters)=True then IncludeFile := False;
            { Don't include file }
            if (stFindData.Attr and faDirectory)<>0 then
            begin
              { folder Check }
              if (IsFileMatching(stFindData.Name)=False) and (IsAllFileMarkerPresents=False) then IncludeFile := False;
            end
            else if IsFileMatching(stFindData.Name)=False then IncludeFile := False; { FileCheck}

            if IncludeFile=True then
            begin
              { User says if the file is accepted }
              bAcceptFile := True;
              if Assigned(OnAcceptFile)=True then bAcceptFile := OnAcceptFile(FileInfos);

              if bAcceptFile=True then
              begin
                if (stFindData.Attr and faDirectory)<>0 then
                begin { folder }
                  Inc(Stats.NbPathFound);
                  { Event }
                  if assigned(OnFileFound)=True then OnFileFound(FileInfos);
                end
                else
                begin { File }
                  { Stats}
                  Inc(Stats.NbFilesFound);
                  if bNewPath=True then
                  begin
                    { If in new folder Increment the number of different folder }
                    bNewPath := False;
                    Inc(Stats.FoundInNbPath);
                  end;
                  { Event }
                  if assigned(OnFileFound)=True then OnFileFound(FileInfos);
                end;
              end;

            end;
          end;

          { next file or folder }
          if FindNext(stFindData)<>0 then bStop := True;
        end;

        { close the current search operation }
        FindClose(stFindData);
      end
      else
      begin
       bCont  := False;
       Result := False;
      end;

      bFirstPass := False;
    end;
  end;

  Stats.TimeNeeded  := GetTickCount()-StartTime;
  { send statistics }
  if assigned(OnStatistics)=True then OnStatistics(Stats);

  { free memory }
  ListePath.Free;
end;

End.




?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久久久久| 国产麻豆日韩欧美久久| 国产成人午夜高潮毛片| 91福利在线看| 国产精品久久久久永久免费观看 | 中文字幕在线不卡一区| 日本伊人午夜精品| 色综合天天狠狠| 国产网站一区二区| 亚洲777理论| av在线播放不卡| 国产午夜三级一区二区三| 午夜视频一区在线观看| 91在线云播放| 欧美经典一区二区三区| 日韩黄色小视频| 欧洲视频一区二区| 国产精品久久久久婷婷二区次| 免费看欧美女人艹b| 欧美日韩亚洲综合一区 | 蜜桃久久精品一区二区| 91国产福利在线| 日韩美女视频一区| 99久久精品一区| 国产精品久久99| 丰满亚洲少妇av| 欧美激情一区在线观看| 国产麻豆精品theporn| 日韩欧美国产wwwww| 奇米精品一区二区三区在线观看一| 色婷婷久久久亚洲一区二区三区| 国产精品久久精品日日| 成人小视频在线| 国产精品―色哟哟| 99久久99久久精品免费看蜜桃| 国产农村妇女毛片精品久久麻豆| 激情图区综合网| 精品国产免费一区二区三区四区| 水野朝阳av一区二区三区| 91福利在线免费观看| 亚洲自拍偷拍av| 欧美性受极品xxxx喷水| 亚洲成人777| 日韩午夜电影av| 麻豆久久久久久久| 久久久精品影视| 成人av片在线观看| 亚洲激情在线播放| 欧美日韩国产精品自在自线| 午夜精品久久一牛影视| 欧美一区二区观看视频| 国内精品久久久久影院薰衣草| 精品国产乱码91久久久久久网站| 国产精品综合一区二区三区| 9久草视频在线视频精品| 欧美精品第1页| 久久99精品国产麻豆不卡| 国产天堂亚洲国产碰碰| 成人国产精品视频| 亚洲成va人在线观看| 欧美va日韩va| 97精品久久久午夜一区二区三区| 亚洲综合男人的天堂| 日韩三区在线观看| 波多野结衣一区二区三区| 午夜视频在线观看一区二区 | 久久99国产精品久久99| 国产欧美日韩精品一区| 日本福利一区二区| 国产在线一区二区| 一区二区三区国产精品| 欧美一级理论性理论a| 成人激情动漫在线观看| 视频一区视频二区中文| 国产欧美综合在线| 欧美午夜免费电影| 国产精品自产自拍| 天天影视涩香欲综合网 | 国产精品中文字幕一区二区三区| 亚洲日本在线视频观看| 精品久久人人做人人爱| 色香蕉成人二区免费| 国内精品视频一区二区三区八戒| 亚洲乱码国产乱码精品精98午夜| 26uuu色噜噜精品一区二区| 99精品欧美一区二区三区小说| 视频一区中文字幕国产| 国产精品成人一区二区三区夜夜夜| 日韩一区二区三区电影在线观看| aa级大片欧美| 国产一区二区三区精品视频| 一区二区三区色| 国产精品卡一卡二卡三| 日韩欧美卡一卡二| 欧美日韩三级视频| 91蜜桃免费观看视频| 国产乱码精品一区二区三区av | 天天操天天色综合| 亚洲欧美aⅴ...| 国产精品久久久久精k8| 久久一夜天堂av一区二区三区| 欧美一区二区视频在线观看2022| 色婷婷av一区二区三区大白胸| 国产a精品视频| 国产麻豆欧美日韩一区| 久久精品av麻豆的观看方式| 视频一区中文字幕| 午夜精品影院在线观看| 一区二区三区四区在线免费观看| 欧美极品xxx| 亚洲国产成人午夜在线一区| 2024国产精品| 久久精品夜夜夜夜久久| 精品国产制服丝袜高跟| 精品国产一区二区三区久久久蜜月 | 欧美一级夜夜爽| 69p69国产精品| 91精品一区二区三区久久久久久 | 国产高清不卡一区| 国产精品一区二区视频| 国产一区二区三区日韩| 国产麻豆视频一区| 国产激情91久久精品导航| 国产成人精品在线看| 国产福利不卡视频| 成人h动漫精品| 91丨porny丨首页| 在线精品观看国产| 欧美日韩成人综合天天影院 | 99久久精品国产一区二区三区| 成人av动漫网站| 色综合久久天天综合网| 欧美日韩在线三区| 日韩欧美亚洲一区二区| 久久精品一区二区三区四区| 中文字幕不卡一区| 一区二区三区欧美日韩| 午夜av一区二区三区| 青娱乐精品视频在线| 国产精品性做久久久久久| 91视频一区二区| 欧美日本国产视频| 久久久久久久久久看片| 亚洲欧美在线另类| 日韩国产精品久久久久久亚洲| 九九精品视频在线看| 成人黄色av电影| 欧美亚洲国产一区二区三区va | 久久精品亚洲麻豆av一区二区| 中文字幕一区二区三中文字幕| 亚洲综合激情网| 激情欧美一区二区| zzijzzij亚洲日本少妇熟睡| 日本精品一级二级| 欧美成人三级在线| 亚洲激情在线播放| 韩国成人在线视频| 在线看国产一区| 久久精品网站免费观看| 亚洲自拍欧美精品| 国产91精品免费| 欧美二区三区的天堂| 国产精品的网站| 久久精品国产99国产| 一本大道久久a久久综合婷婷| 日韩欧美激情一区| 亚洲日本韩国一区| 国产精品一区二区在线播放| 欧美日韩激情在线| 国产精品久久久久永久免费观看 | 日韩伦理av电影| 久草中文综合在线| 在线国产电影不卡| 欧美激情一区三区| 久久精工是国产品牌吗| 欧美视频一区二| 亚洲色图制服诱惑 | 蜜桃av噜噜一区| 日本道精品一区二区三区| 国产日韩精品久久久| 蜜臀精品久久久久久蜜臀| 欧美在线一二三四区| 国产精品盗摄一区二区三区| 国产老妇另类xxxxx| 日韩欧美一区二区免费| 亚洲第一在线综合网站| 日本精品一区二区三区四区的功能| 中文欧美字幕免费| 国产成人在线免费观看| 欧美tk丨vk视频| 久久国产剧场电影| 日韩午夜av电影| 日本亚洲视频在线| 91麻豆精品91久久久久同性| 亚洲精品国产一区二区精华液| 94色蜜桃网一区二区三区| 中文字幕av在线一区二区三区| 国产一区在线观看麻豆| 久久一区二区三区四区| 精品一区二区在线免费观看|