int ok = hw_NextDirEntry(APTR handle, APTR dirhandle, struct hwos_ExLockStruct *exlock);
hw_NextDirEntry()
returns False
, then all entries have been read. If it returns True
,
then you can read information about the file system object from the struct hwos_ExLockStruct
which has to be passed in parameter 2. struct hwos_ExLockStruct
looks like this:
struct hwos_ExLockStruct { int nStructSize; // [in] STRPTR Name; // [out] int Type; // [out] ULONG Size; // [out] ULONG Flags; // [out] }; |
Here's a description of the individual structure members:
nStructSize:
sizeof(struct hwos_ExLockStruct)
before
calling hw_NextDirEntry()
.
Name:
hw_NextDirEntry()
.
Type:
HWEXLOCKTYPE_FILE:
HWEXLOCKTYPE_DIRECTORY:
Size:
Flags:
struct hwos_ExLockStruct
for storing information
about the file system objectTrue
if an object could be read, False
if there are no more objects