1<html> 2 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 6<title>THPUtyReadTHPHeader</title> 7</head> 8 9<body> 10 11<h1>THPUtyReadTHPHeader</h1> 12 13<h2>C Specification</h2> 14 15<dl> 16<dd><pre><code>#include <win32/thputilities.h></code></pre></dd> 17<dd><pre><code>s32 THPUtyReadTHPHeader(FILE* ip, THPHeader* header);</code></pre></dd> 18</dl> 19 20<h2>Arguments</h2> 21<table border="1" cellpadding="3" cellspacing="0.1"> 22 <tr> 23<td width="120" bgcolor="#ffffe8"><strong><em><CODE>ip</CODE></em></strong></td> 24<td width="520">File pointer to the THP movie data.</td> 25 </tr> 26 <tr> 27<td width="120" bgcolor="#ffffe8"><strong><em><CODE>header</CODE></em></strong></td> 28<td width="520">Pointer to the <code>THPHeader</code> structure.</td> 29 </tr> 30</table> 31 32<h2>Return Values</h2> 33<p> 34Returns one of the following codes: 35</p> 36 37<table border="1"> 38 <tbody> 39 <tr align="center"> 40<td>Code</td> 41<td width=50>Value</td> 42<td>Description</td> 43 </tr> 44 <tr> 45<td><CODE>THP_ERROR_NOERROR</CODE></td> 46 <td align="center">0</td> 47<td>The function ended normally.</td> 48 </tr> 49 <tr> 50<td><CODE>THP_ERROR_FILEIO</CODE></td> 51 <td align="center">1</td> 52<td>Failed to read or write from file. </td> 53 </tr> 54 <tr> 55<td><CODE>THP_ERROR_THPFILE</CODE></td> 56 <td align="center">2</td> 57<td>The THP movie data is invalid. </td> 58 </tr> 59 </tbody> 60</table> 61 62<h2>Description</h2> 63<p> 64This function reads a <code>THPHeader</code> structure from the THP movie data specified by <code>ip</code>. The read position must be set in advance to <code>THPHeader</code>'s position. 65</p> 66 67<h2>See Also</h2> 68<p> 69None. 70</p> 71 72<h2>Revision History</h2> 73<P>2006/03/01 Initial version.</P> 74<hr> 75<P>CONFIDENTIAL</p> 76</BODY> 77</HTML>