Previous: Registers type To the Table of Content Next: Dos Unit Procedures and Functions

- 4.24.1.7 -
Standard Units
Dos Unit
Dos Unit Constants and Variables

SearchRec type

Targets: MS-DOS, OS/2, Win32

Dos Unit

The FindFirst and FindNext procedures use variables of type SearchRec to scan directories:

Declaration:

MS-DOS target
type
  SearchRec = record 
    Fill : array[1..21] of Byte;
    Attr : Byte;
    Time : Longint;
    Size : Longint;
    Name : string[12];
  end;
OS/2 target
type
  SearchRec = record 
    Fill : array [1..21] of Byte;
    Attr : Byte;
    Time : Longint;
    Size : Longint;
    Name : string;
  end;
Win32 target
type
  SearchRec = record   
    Fill : array [1..21] of Byte;
    Attr : Byte;
    Time : Longint;
    Size : Longint;
    Name : TFileName;
    ExcludeAttr: Longint;
    FindHandle: THandle;
    FindData: TWin32FindData;
  end;
Information for each file found by FindFirst or FindNext is reported back in a SearchRec.
 Field  Meaning 
Attr File's attributes
Time File's packed date and time 
Size File's size, in bytes
Name File's name
The Fill field is reserved by DOS and should never be modified.


Previous: Registers type To the Table of Content Next: Dos Unit Procedures and Functions
Registers type Table of Content Dos Unit Procedures and Functions

- 4.24.1.7 -