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 http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<title>CNTFastOpen</title> 9</head> 10 11<body> 12 13<h1>CNTFastOpen</h1> 14 15<h2>Syntax</h2> 16<dl><dd><pre><code> 17#include <revolution/cnt.h> 18 19CNTFastOpen(CNTHandle* CntHandle, s32 entrynum, CNTFileinfo* cf); 20</code></pre></dd></dl> 21 22<h2>Arguments</h2> 23<p> 24<TABLE border="1" > 25 <tr> 26<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>CntHandle</EM></STRONG></CODE></TD> 27<TD width="520">Pointer to the <CODE>CNTHandle</CODE> structure.</TD> 28 </tr> 29 <tr> 30<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>entrynum</EM></STRONG></CODE></TD> 31<TD width="520">Entry number of the file to open.</TD> 32 </tr> 33 <tr> 34<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>cf</EM></STRONG></CODE></TD> 35<TD width="520">Pointer to the file structure.</TD> 36 </tr> 37</TABLE> 38</p> 39 40<h2>Return Values</h2> 41<p> 42Returns <code>CNT_RESULT_OK</code> when the file opens normally. Returns <code>CNT_RESULT_INVALID</code> if the specified entry number is invalid, or if the specified entry number is a directory.<br> 43</p> 44 45 46<H2>Description</H2> 47<p> 48Opens a file within the content file and initializes the specified <CODE>CNTFileInfo</CODE> structure. The difference with <a href="./CNTOpen.html"><CODE>CNTOpen</CODE></a> is that an entry number is specified rather than a file name. <a href="./CNTConvertPathToEntrynum.html"><CODE>CNTConvertPathToEntrynum</CODE></a> must be called first to get the entry number for the file.<br> 49</p> 50 51<h2>See Also</h2> 52<p> 53<code><a href="./CNTOpen.html">CNTOpen</a></code>, <code><a href="./CNTConvertPathToEntrynum.html">CNTConvertPathToEntrynum</a></code> 54</p> 55<H2>Revision History</H2> 56<p> 572007/11/20 Standardized the use of the term "content file".<BR>2006/12/04 Added result code descriptions.<br>2006/10/26 Initial version. 58</p> 59 60 61<hr><p>CONFIDENTIAL</p></body> 62</html> 63