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>THPUtyReadTHPVideoInfo</title>
8</head>
9
10<body>
11
12<h1>THPUtyReadTHPVideoInfo</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;win32/thputilities.h&gt;
17
18s32 THPUtyReadTHPVideoInfo(FILE* ip, THPVideoInfo* videoinfo);
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<TABLE class="arguments" border="1" >
23  <tr>
24<th>ip</th>
25<td>File pointer to THP movie data.</td>
26  </tr>
27  <tr>
28<th>videoinfo</th>
29<td>Pointer to a <A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code></A> structure.</td>
30  </tr>
31</table>
32
33<h2>Return Values</h2>
34<p>
35Returns one of the following codes.
36</p>
37
38<TABLE class="arguments" border="1" >
39  <tbody>
40    <tr align="center">
41<td bgcolor="#CCCCCC"><STRONG>Code</STRONG></td>
42<td bgcolor="#CCCCCC" width=50><STRONG>Value</STRONG></td>
43<td bgcolor="#CCCCCC"><STRONG>Description</STRONG></td>
44    </tr>
45    <tr>
46<th>THP_ERROR_NOERROR</th>
47      <td align="center">0</td>
48<td>The function ended normally.</td>
49    </tr>
50    <tr>
51<th>THP_ERROR_FILEIO</th>
52      <td align="center">1</td>
53<td>Failed to read to or write from file.</td>
54    </tr>
55  </tbody>
56</table>
57
58<h2>Description</h2>
59<p>
60Reads a <A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code></A> structure  from the THP movie data specified by <SPAN class="argument">ip</SPAN>. The read position must already be set to the position of <A href="../../common/THPVideoInfo.html"><code>THPVideoInfo</code></A>.
61</p>
62
63<h2>See Also</h2>
64<p class="reference">
65<A href="../../common/THPVideoInfo.html">THPVideoInfo</A>
66</p>
67
68<h2>Revision History</h2>
69<P>
702006/03/01 Initial version.<br>
71</P>
72
73<hr><p>CONFIDENTIAL</p></body>
74</html>