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<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
7<title>THPUtyCreateTHP</title>
8</head>
9
10<body>
11
12<h1>THPUtyCreateTHP</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;win32/thputilities.h&gt;
17
18s32 THPUtyCreateTHP(FILE*            op,
19                    s32              fileFlag,
20                    void*            filePtr,
21                    THPFileHeader*   fileHeader,
22                    THPAudioHandle** audioHandleList);
23</pre></dd></dl>
24
25<h2>Arguments</h2>
26<TABLE class="arguments" border="1" >
27  <tr>
28<th><STRONG><EM><CODE>op</CODE></EM></STRONG></th>
29<td>File pointer to output destination.</td>
30  </tr>
31  <tr>
32<th>fileFlag</th>
33<td>Flag that specifies the input data type.</td>
34  </tr>
35  <tr>
36<th>filePtr</th>
37<td>Pointer to input data corresponding to <SPAN class="argument">fileFlag</SPAN>.</td>
38  </tr>
39  <tr>
40<th>fileHeader</th>
41<td>Pointer to <code>THPFileHeader</code> structure.</td>
42  </tr>
43  <tr>
44<th>audioHandleList</th>
45<td>Pointer list for <A href="../thpaudio/THPAudioHandle.html"><code>THPAudioHandle</code></A> structures.</td>
46  </tr>
47</table>
48
49<h2>Return Values</h2>
50<p>
51Returns one of the following codes.
52</p>
53
54<TABLE class="arguments" border="1" >
55  <tbody>
56    <tr align="center">
57<td bgcolor="#CCCCCC">Code</td>
58<td bgcolor="#CCCCCC" width=50>Value</td>
59<td bgcolor="#CCCCCC">Description</td>
60    </tr>
61    <tr>
62<th>THP_ERROR_NOERROR</th>
63      <td align="center">0</td>
64<td>The function ended normally.</td>
65    </tr>
66    <tr>
67<th>THP_ERROR_FILEIO</th>
68      <td align="center">1</td>
69<td>Failed to read to or write from file.</td>
70    </tr>
71    <tr>
72<th>THP_ERROR_THPFILE</th>
73      <td align="center">2</td>
74<td>The THP movie data is invalid.</td>
75    </tr>
76    <tr>
77<th>THP_ERROR_JPEGFILE</th>
78      <td align="center">3</td>
79<td>JPEG data is invalid.</td>
80    </tr>
81    <tr>
82<th>THP_ERROR_DATA</th>
83      <td align="center">4</td>
84<td>Data is invalid.</td>
85    </tr>
86    <tr>
87<th>THP_ERROR_FATAL</th>
88      <td align="center">5</td>
89<td>Failed to allocate memory.</td>
90    </tr>
91  </tbody>
92</table>
93
94<h2>Description</h2>
95<p>
96Generates THP movie data based on the information in <SPAN class="argument">fileHeader</SPAN> and outputs it to <SPAN class="argument">op</SPAN>.
97</p>
98<p>
99For details, see the <CODE>thputilities(D).lib</CODE> source code in <CODE>build/tools/thputilities/src/thputilities.c</CODE>.
100</p>
101
102<h2>See Also</h2>
103<p class="reference">
104<A href="../thpaudio/THPAudioHandle.html">THPAudioHandle</A>
105</p>
106
107<h2>Revision History</h2>
108<P>
1092006/03/01 Initial version.<br>
110</P>
111
112<hr><p>CONFIDENTIAL</p></body>
113</html>