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>THPUtyReadTHPFileHeader</title> 8</head> 9 10<body> 11 12<h1>THPUtyReadTHPFileHeader</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <win32/thputilities.h> 17 18s32 THPUtyReadTHPFileHeader(FILE* ip, THPFileHeader* fileHeader); 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>fileHeader</th> 29<td>Pointer to <code>THPFileHeader</code> 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">Code</td> 42<td bgcolor="#CCCCCC" width=50>Value</td> 43<td bgcolor="#CCCCCC">Description</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 <tr> 56<th>THP_ERROR_THPFILE</th> 57 <td align="center">2</td> 58<td>The THP movie data is invalid.</td> 59 </tr> 60 </tbody> 61</table> 62 63<h2>Description</h2> 64<p> 65Reads a <code>THPFileHeader</code> structure from the THP movie data specified by <SPAN class="argument">ip</SPAN>. The read position must already be set to the position of <code>THPFileHeader</code>. 66</p> 67 68<h2>See Also</h2> 69<p> 70None. 71</p> 72 73<h2>Revision History</h2> 74<P> 752006/03/01 Initial version.<br> 76</P> 77 78<hr><p>CONFIDENTIAL</p></body> 79</html>