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