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>DVDConvertPathToEntrynum</title> 10</head> 11 12<body> 13 14<h1>DVDConvertPathToEntrynum</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/dvd.h> 19 20s32 DVDConvertPathToEntrynum(const char* fileName); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>fileName</TH> 27<TD>Pointer to a file name to convert.</TD> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>Returns the entry number if the file is found, -1 if the file is not found.</p> 33 34<H2>Description</H2> 35<P>Converts a file name to an entry number. The entry number is a unique number assigned to a file. After an entry number is obtained for a file, call the <A href="DVDFastOpen.html"><CODE>DVDFastOpen</CODE></A> function. The <CODE><A href="DVDFastOpen.html">DVDFastOpen</A></CODE> function opens the file quicker than <A href="DVDOpen.html"><CODE>DVDOpen</CODE></A>.</P> 36<P>This function is also used to check whether a file exists. If <STRONG><code><em>fileName</em></code></STRONG> doesn't exist, you can check for the file easily because the <code>DVDConvertPathToEntrynum</code> function returns -1. Using the <A href="DVDOpen.html"><CODE>DVDOpen</CODE></A> function for this purpose is undesirable, because the <A href="DVDOpen.html"><CODE>DVDOpen</CODE></A> function displays a warning message if the specified file does not exist. Even if <SPAN class="argument">fileName</SPAN> does not exist, the <CODE>DVDConvertPathToEntrynum</CODE> function will not display a message.</P> 37<P>Because the <CODE>DVDConvertPathToEntrynum</CODE> function returns a unique entry number, the number can be used for the user's own purposes, for example, as a file ID for managing a file cache system. Note that this number changes with the next <CODE>ndrun</CODE>, especially after you add, delete or move files, or change disc layout.</P> 38 39<h2>See Also</h2> 40<p class="reference"> 41<a href="DVDFastOpen.html">DVDFastOpen</a> 42</p> 43 44<H2>Revision History</H2> 45<P> 462006/03/01 Initial version.<BR> 47</P> 48 49<hr><p>CONFIDENTIAL</p></body> 50</html> 51