[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Dos' (#rtl)

SearchRec

File Search Results record

Declaration

Source position: dos.pp line 25

type SearchRec = packed record

  SearchNum: LongInt;

  SearchPos: LongInt;

  DirPtr: Pointer;

  SearchType: Byte;

  SearchAttr: Byte;

  Fill: array [1..07] of Byte;

  Attr: Byte;

  Time: LongInt;

  Size: LongInt;

  Reserved: Word;

  Name: String;

  SearchSpec: String;

  NamePos: Word;

end;

Description

SearchRec is filled by the FindFirst call and can be used in subsequent FindNext calls to search for files. The structure of this record depends on the platform. Only the following fields are present on all platforms:

Attr
File attributes.
Time
File modification time.
Size
File size
Name
File name (name part only, no path)