To
If you want to
To extract subfiles
Pass the context pointer from fpInit()
and the address of a structure that contains pointers to the File Extraction API functions in the call to KVGetExtractInterface().
Declare the input stream or file name in the KVOpenFileArg structure.
Open the source file by calling fpOpenFile() and passing the KVOpenFileArg
structure. This call defines the parameters necessary to open a file for extraction.
Determine whether the source file is a container file (that is, whether it contains subfiles) by calling fpGetMainFileInfo().
If the call to fpGetMainFileInfo()
determined that the source file is a container file, proceed to step 6; otherwise,
Determine whether the subfile is itself a container (that is, whether it contains subfiles) by calling fpGetSubFileInfo().
Extract the subfile by calling fpExtractSubFile().
If the call to fpGetSubFileInfo()
determined that the subfile is a container file, repeat step 2 through step 7 until all subfiles are extracted and the lowest level of subfiles is reached; otherwise,
|