1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>DVDReadDir</title> 10</head> 11 12<body> 13 14<h1>DVDReadDir</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/dvd.h> 19 20BOOL DVDReadDir(DVDDir* dir, DVDDirEntry* dirent); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>dir</TH> 27<TD>Directory structure associated with the directory to read.</TD> 28 </tr> 29 <tr> 30<TH>dirent</TH> 31<TD>Information about the next directory entry.</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<p>If the directory is present, returns <CODE>TRUE</CODE>. </p> 37<p>If the end of the directory is reached or an invalid <A href="DVDSeekDir.html"><CODE>DVDSeekDir</CODE></A> process is detected, returns <CODE>FALSE</CODE>.</p> 38 39<H2>Description</H2> 40<P>Gets information about the next directory entry. The directory entry is either a directory or a file. If the entry is a directory, <SPAN class="argument">dirent->isDir</SPAN> is <CODE>TRUE</CODE>. To open the subdirectory, call the <CODE>DVDOpenDir</CODE> function using <SPAN class="argument">dirent->name</SPAN>. If the entry is a file, <SPAN class="argument">dirent->isDir</SPAN> is <CODE>FALSE</CODE>. To open a file, you can also call <CODE>DVDOpen</CODE> using <SPAN class="argument">dirent->name</SPAN>.</P> 41<P>When <CODE>DVDReadDir</CODE> reaches the end of a directory or detects an invalid <CODE>DVDSeekDir</CODE> operation, it returns <CODE>FALSE</CODE>. If there are directory entries, the function returns <CODE>TRUE</CODE> and valid entry information is stored in <SPAN class="argument">dirent</SPAN>.</P> 42 43<h2>See Also</h2> 44<p class="reference"> 45<a href="DVDOpenDir.html">DVDOpenDir</a>, 46<a href="DVDCloseDir.html">DVDCloseDir</a>, 47<a href="DVDSeekDir.html">DVDSeekDir</a>, 48<a href="DVDRewindDir.html">DVDRewindDir</a> 49</p> 50 51<H2>Revision History</H2> 52<P> 532006/03/01 Initial version.<BR> 54</P> 55 56<hr><p>CONFIDENTIAL</p></body> 57</html> 58