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>THPUtyWriteTHPFileHeader</title> 8</head> 9 10<body> 11 12<h1>THPUtyWriteTHPFileHeader</h1> 13 14<h2>Syntax</h2> 15<dl><dd><pre class="construction"> 16#include <win32/thputilities.h> 17 18s32 THPUtyWriteTHPFileHeader(FILE* op, 19 THPFileHeader* fileHeader, 20 s32* compInfoSize); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th><STRONG><EM><CODE>op</CODE></EM></STRONG></th> 27<td>File pointer to output destination.</td> 28 </tr> 29 <tr> 30<th>fileHeader</th> 31<td>Pointer to the <code>THPFileHeader</code> structure to output.</td> 32 </tr> 33 <tr> 34<th>compInfoSize</th> 35<td>Pointer to the component size storage location.</td> 36 </tr> 37</table> 38 39<h2>Return Values</h2> 40<p> 41Returns one of the following codes. 42</p> 43 44<TABLE class="arguments" border="1" > 45 <tbody> 46 <tr align="center"> 47<td bgcolor="#CCCCCC"><STRONG>Code</STRONG></td> 48<td bgcolor="#CCCCCC" width=50><STRONG>Value</STRONG></td> 49<td bgcolor="#CCCCCC"><STRONG>Description</STRONG></td> 50 </tr> 51 <tr> 52<th>THP_ERROR_NOERROR</th> 53 <td align="center">0</td> 54<td>The function ended normally.</td> 55 </tr> 56 <tr> 57<th>THP_ERROR_FILEIO</th> 58 <td align="center">1</td> 59<td>Failed to read to or write from file.</td> 60 </tr> 61 <tr> 62<th>THP_ERROR_DATA</th> 63 <td align="center">4</td> 64<td>Data is invalid.</td> 65 </tr> 66 </tbody> 67</table> 68 69<h2>Description</h2> 70<p> 71Outputs the <code>THPFileHeader</code> structure to the file specified by <SPAN class="argument">op</SPAN>. 72</p> 73 74<h2>See Also</h2> 75<p> 76None. 77</p> 78 79<h2>Revision History</h2> 80<P> 812006/03/01 Initial version.<br> 82</P> 83 84<hr><p>CONFIDENTIAL</p></body> 85</html>