#include <revolution/dvd.h> BOOL DVDReadDir(DVDDir* dir, DVDDirEntry* dirent);
| dir | Directory structure associated with the directory to read. |
|---|---|
| dirent | Information about the next directory entry. |
If the directory is present, returns TRUE.
If the end of the directory is reached or an invalid DVDSeekDir process is detected, returns FALSE.
Gets information about the next directory entry. The directory entry is either a directory or a file. If the entry is a directory, dirent->isDir is TRUE. To open the subdirectory, call the DVDOpenDir function using dirent->name. If the entry is a file, dirent->isDir is FALSE. To open a file, you can also call DVDOpen using dirent->name.
When DVDReadDir reaches the end of a directory or detects an invalid DVDSeekDir operation, it returns FALSE. If there are directory entries, the function returns TRUE and valid entry information is stored in dirent.
DVDOpenDir, DVDCloseDir, DVDSeekDir, DVDRewindDir
2006/03/01 Initial version.
CONFIDENTIAL