ArcName |
Input parameter which should point to a, zero terminated string
containing the archive name.
|
OpenMode |
Input parameter.
Possible values
RAR_OM_LIST |
Open archive for reading file headers only |
RAR_OM_EXTRACT |
Open archive for testing and extracting files |
|
OpenResult |
Output parameter.
Possible values
0 |
Success |
ERAR_NO_MEMORY |
Not enough memory to initialize data structures |
ERAR_BAD_DATA |
Archive header broken |
ERAR_BAD_ARCHIVE |
File is not valid RAR archive |
ERAR_EOPEN |
File open error |
|
CmtBuf |
Input parameter which should point to the buffer for archive
comments. Maximum comment size is limited to 64Kb. Comment text is
zero terminated. If the comment text is larger than the buffer
size, the comment text will be truncated. If CmtBuf is set to
NULL, comments will not be read.
|
CmtBufSize |
Input parameter which should contain size of buffer for archive
comments.
|
CmtSize |
Output parameter containing size of comments actually read into the
buffer, cannot exceed CmtBufSize.
|
CmtState |
Output parameter.
Possible values
0 |
Success |
1 |
Comments read completely |
ERAR_NO_MEMORY |
Not enough memory to extract comments |
ERAR_BAD_DATA |
Broken comment |
ERAR_UNKNOWN_FORMAT |
Unknown comment format |
ERAR_SMALL_BUF |
Buffer too small, comments not completely read |
|
ArcName |
Output parameter which contains a zero terminated string of the
current archive name. May be used to determine the current volume
name. |
FileName |
Output parameter which contains a zero terminated string of the
file name in OEM (DOS) encoding. |
Flags |
Output parameter which contains file flags:
bits 4 3 2 1 0 - Possible values
0x01 |
file continued from previous volume |
0x02 |
file continued on next volume |
0x04 |
file encrypted with password |
0x08 |
file comment present |
0x10 |
compression of previous files is used (solid flag) |
bits 7 6 5 - Possible values
0 0 0 |
dictionary size 64 Kb |
0 0 1 |
dictionary size 128 Kb |
0 1 0 |
dictionary size 256 Kb |
0 1 1 |
dictionary size 512 Kb |
1 0 0 |
dictionary size 1024 Kb |
1 0 1 |
reserved |
1 1 0 |
reserved |
1 1 1 |
file is directory |
Other bits are reserved. |
PackSize |
Output parameter means packed file size or size of the
file part if file was split between volumes.
|
UnpSize |
Output parameter - unpacked file size. |
HostOS |
Output parameter - operating system used for archiving:
Possible values
0 |
MS DOS |
1 |
OS/2 |
2 |
Win32 |
3 |
Unix |
|
FileCRC |
Output parameter which contains unpacked file CRC. It should not be
used for file parts which were split between volumes. |
FileTime |
Output parameter - contains date and time in standard MS DOS format. |
UnpVer |
Output parameter - RAR version needed to extract file.
It is encoded as 10 * Major version + minor version. |
Method |
Output parameter - packing method. |
FileAttr |
Output parameter - file attributes. |
CmtBuf |
Input parameter which should point to the buffer for archive
comments. Maximum comment size is limited to 64Kb. Comment text is
a zero terminated string in OEM encoding. If the comment text is
larger than the buffer size, the comment text will be truncated.
If CmtBuf is set to NULL, comments will not be read. |
CmtBufSize |
Input parameter which should contain size of buffer for archive
comments. |
CmtSize |
Output parameter containing size of comments actually read into the
buffer, should not exceed CmtBufSize. |
CmtState |
Output parameter.
Possible values
0 |
Absent comments |
1 |
Comments read completely |
ERAR_NO_MEMORY |
Not enough memory to extract comments |
ERAR_BAD_DATA |
Broken comment |
ERAR_UNKNOWN_FORMAT |
Unknown comment format |
ERAR_SMALL_BUF |
Buffer too small, comments not completely read |
|
hArcData |
This parameter should contain the archive handle obtained from the
RAROpenArchive function call. |
Operation |
File operation.
Possible values
RAR_SKIP |
Move to the next file in the archive. If the
archive is solid and RAR_OM_EXTRACT mode was set
when the archive was opened, the current file will
be processed - the operation will be performed
slower than a simple seek. |
RAR_TEST |
Test the current file and move to the next file in
the archive. If the archive was opened with
RAR_OM_LIST mode, the operation is equal to
RAR_SKIP. |
RAR_EXTRACT |
Extract the current file and move to the next file.
If the archive was opened with RAR_OM_LIST mode,
the operation is equal to RAR_SKIP. |
|
DestPath |
This parameter should point to a zero terminated string containing the
destination directory to which to extract files to. If DestPath is equal
to NULL it means extract to the current directory. This parameter has
meaning only if DestName is NULL. |
DestName |
This parameter should point to a string containing the full path and name
of the file to be extracted or NULL as default. If DestName is defined
(not NULL) it overrides the original file name saved in the archive and
DestPath setting.
Both DestPath and DestName must be in OEM encoding. If necessary,
use CharToOem to convert text to OEM before passing to this function. |