Previous: 4.24.1.5 Registers type To the Table of Contents Next: 4.24.2. DOS Unit Procedures and Functions
4.24.1.5 Registers type Table of Contents 4.24.2. DOS Unit Procedures and Functions

- 4.24.1.6 -
Table of Contents
4. Standard Units
4.24. DOS - MSDOS support unit
4.24.1.6 SearchRec type


4.24.1.6 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;
    finder : pointer;
  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: 4.24.1.5 Registers type To the Table of Contents Next: 4.24.2. DOS Unit Procedures and Functions
4.24.1.5 Registers type Table of Contents 4.24.2. DOS Unit Procedures and Functions

- 4.24.1.6 -