Examine an entire directory
Source position: amigados.pas line 2507
function ExAll( |
Lock: LongInt; |
Buffer: PExAllData; |
Size: LongInt; |
Data: LongInt; |
Control: PExAllControl |
):LongBool; |
Lock |
|
Lock on the directory to be examined |
Buffer |
|
Buffer for the data that is returned (must be aligned) which is filled with (partial) TExAllData structures |
Size |
|
Size of buffer |
Data |
|
Type of the data to be returned |
Control |
|
A control structure allocated by AllocDosObject() |
An indicator of if ExAll() is done. If False is returned, either ExAll() has completed in which case IoErr() is ERROR_NO_MORE_ENTRIES or an error occurred. If a True is returned ExAll() must be called again until it returns False.
Lock must be on a directory. Size is the size of the buffer supplied. The buffer will be filled with (partial) ExAllData structures, as specified by the type field.
ed_Type is a value from those shown below that determines which information is to be stored in the buffer. Each higher value adds a new thing to the list as described in the table below:
Thus, ED_OWNER gives only filenames, and ED_OWNER gives everything.
The ed_Next entry gives a pointer to the next entry in the buffer. The last entry will have nil in ed_Next.
This is an incremental list meaning that if you specify ED_OWNER you will get all attributes!
Filesystems that support ExAll() must support at least up to ED_COMMENT. If a filesystem doesn't support a particular type, ERROR_BAD_NUMBER must be returned.
|
Stop an ExAll() |
|
|
Creates a dos object |