Structure expected by MatchFirst, MatchNext to find Files.
Source position: amigados.pas line 700
type PAnchorPath = ^TAnchorPath; |
To search for files call MatchFirst() and then afterwards, MatchNext() with this structure. You should check the return value each time and take the appropriate action, ultimately calling MatchEnd() when there are no more files and you are done. You can tell when you are done by checking for the normal DOS return code ERROR_NO_MORE_ENTRIES.
|
Finds file that matches pattern |
|
|
Finds the next file or directory that matches pattern |
|
|
Free storage allocated for MatchFirst()/MatchNext() |