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>CNTOpen</title>
9</head>
10
11<body>
12
13<h1>CNTOpen</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/cnt.h&gt;
18
19s32 CNTOpen(CNTHandle* CntHandle, const char* filename, 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>filename</EM></STRONG></CODE></TD>
31<TD width="520">Name of 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 <CODE>CNTFileInfo</CODE> structure to be initialized.</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 file or path does not exist, or if the specified path is a directory.<br>
43</p>
44
45
46<H2>Description</H2>
47<p>
48Opens a file inside the content file and initializes the <CODE>CNTFileInfo</CODE> structure. The <CODE>CNTHandle</CODE> structure must be initialized with the <a href="CNTInitHandle.html">CNTInitHandle</a> function first.<br>
49</p>
50
51<h2>See Also</h2>
52<p>
53<code><a href="./CNTInitHandle.html">CNTInitHandle</a></code>
54</p>
55<H2>Revision History</H2>
56<p>
572007/11/20 Standardized the use of the term &quot;content file&quot;.<BR>2006/12/04 Added result code descriptions.<br>2006/08/15 Initial version.
58</p>
59
60
61<hr><p>CONFIDENTIAL</p></body>
62</html>
63