52 lines
1.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>UnRAR.dll Manual</title>
</head>
<body>
<h3>int PASCAL RARReadHeader(HANDLE hArcData,struct RARHeaderData *HeaderData)</h3>
<h3>Description</h3>
<p>Read a file header from archive.</p>
<p>This function is obsolete. It does not support Unicode names
and 64 bit file sizes. It is recommended to use
<a href="RARReadHeaderEx.htm">RARReadHeaderEx</a> instead.<p>
<h3>Parameters</h3>
<i>hArcData</i>
<blockquote>
This parameter should contain the archive handle obtained from
<a href="RAROpenArchive.htm">RAROpenArchive</a> or
<a href="RAROpenArchiveEx.htm">RAROpenArchiveEx</a> function call.
</blockquote>
<i>HeaderData</i>
<blockquote>
Points to <a href="RARHeaderData.htm">RARHeaderData structure</a>.
</blockquote>
<h3>Return values</h3>
<blockquote>
<table border="1">
<tr><td>0</td><td>Success</td></tr>
<tr><td>ERAR_END_ARCHIVE</td><td>End of archive</td></tr>
<tr><td>ERAR_BAD_DATA</td><td>File header broken</td></tr>
<tr><td>ERAR_MISSING_PASSWORD</td><td>Password was not provided
for encrypted file header</td></tr>
</table>
</blockquote>
<h3>See also</h3>
<blockquote>
<a href="RARHeaderData.htm">RARHeaderData</a> structure.
</blockquote>
</body>
</html>