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>THPUtyCopyTHPFile</title>
8</head>
9
10<body>
11
12<h1>THPUtyCopyTHPFile</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;win32/thputilities.h&gt;
17
18s32 THPUtyCopyTHPFile(FILE*            ip,
19                      THPFileHeader*   fileHeader,
20                      FILE*            op);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th>ip</th>
27<td>File pointer to copy source.</td>
28  </tr>
29  <tr>
30<th>fileHeader</th>
31<td>Pointer to <code>THPFileHeader</code> structure.</td>
32  </tr>
33  <tr>
34<th><STRONG><EM><CODE>op</CODE></EM></STRONG></th>
35<td>File pointer to copy destination.</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">Code</td>
48<td bgcolor="#CCCCCC" width=50>Value</td>
49<td bgcolor="#CCCCCC">Description</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    <tr>
67<th>THP_ERROR_FATAL</th>
68      <td align="center">5</td>
69<td>Failed to allocate memory.</td>
70    </tr>
71  </tbody>
72</table>
73
74<h2>Description</h2>
75<p>
76Copies the THP file specified by <SPAN class="argument">ip</SPAN> to <SPAN class="argument">op</SPAN>.
77</p>
78<p>
79For details, see the <CODE>thputilities(D).lib</CODE> source code in <CODE>build/tools/thputilities/src/thputilities.c</CODE>.
80</p>
81
82<h2>See Also</h2>
83<p>
84None.
85</p>
86
87<h2>Revision History</h2>
88<P>
892006/03/01 Initial version.<br>
90</P>
91
92<hr><p>CONFIDENTIAL</p></body>
93</html>