Previous: 4.74.1.6. TRegisters type To the Table of Contents Next: 4.74.2. WinDos Unit Procedures and Functions
4.74.1.6. TRegisters type Table of Contents 4.74.2. WinDos Unit Procedures and Functions

- 4.74.1.7. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.1. WinDos Unit Constants and Variables
4.74.1.7. TSearchRec type


4.74.1.7. TSearchRec type

Targets: MS-DOS, OS/2, Win32


WinDos Unit

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

Declaration:

MS-DOS target
type
   TSearchRec = record 
     Fill   : array [1..21] of Byte;
     Attr   : Byte;
     Time   : Longint;
     Size   : Longint;
     Name   : string;
     finder : pointer;
end;
OS/2 target
type
   TSearchRec = record 
     Fill : array [1..21] of Byte;
     Attr : Byte;
     Time : Longint;
     Size : Longint;
     Name : string;
  end;
Win32 target
type
  TSearchRec = 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.74.1.6. TRegisters type To the Table of Contents Next: 4.74.2. WinDos Unit Procedures and Functions
4.74.1.6. TRegisters type Table of Contents 4.74.2. WinDos Unit Procedures and Functions

- 4.74.1.7. -