This structure contains information about a main file that is open for extraction. It is initialized by calling fpGetMainFileInfo(). This structure is defined in kvxtract.h.
typedef struct tag_KVMainFileInfo
{
KVStructHeader;
int numSubFiles;
ADDOCINFO docInfo;
KVCharSet charset;
int isMSBLSB;
unsigned long infoFlag;
}
KVMainFileInfoRec, *KVMainFileInfo;
KVStructHeader
|
The KeyView version of the structure. See |
numSubFiles
|
The number of subfiles in the main file. |
docInfo
|
The file’s major format (such as Microsoft Word or Corel Presentation), as defined by the structure ADDOCINFO. See |
charset
|
The character set of the main file. |
isMSBLSB
|
This flag indicates whether the byte order for Unicode text is Big Endian (MSBLSB) or Little Endian (LSBMSB). |
infoFlag
|
A bitwise flag that provides additional information about the main file. The following flag is available:
For an MSG file without attachments, For a Zip file with three files, For a Microsoft Word file with an embedded OLE object, |
If numSubFiles is non-zero, get information on the subfile by calling fpGetSubFileInfo(), and then extract the subfiles by using fpExtractSubFile().
If numSubFiles is 0, the file does not contain subfiles and does not need to be extracted further. If the KVMainInfoFlag_HasContent flag is set, the file contains body text and can be passed directly to the
If openFlag is set to KVOpenFileFlag_CreateRootNode in the call to fpOpenFile(), numSubFiles also includes the root object (index 0) which is created by KeyView for reconstructing the file’s hierarchy. See KVOpenFileArg.
|
|