Logo Search packages:      
Sourcecode: cabextract version File versions  Download package

int(* mscab_decompressor::extract)(struct mscab_decompressor *self, struct mscabd_file *file, char *filename)

Extracts a file from a cabinet or cabinet set.

This extracts a compressed file in a cabinet and writes it to the given filename.

The MS-DOS filename of the file, mscabd_file::filename, is NOT USED by extract(). The caller must examine this MS-DOS filename, copy and change it as necessary, create directories as necessary, and provide the correct filename as a parameter, which will be passed unchanged to the decompressor's mspack_system::open()

If the file belongs to a split folder in a multi-part cabinet set, and not enough parts of the cabinet set have been loaded and appended or prepended, an error will be returned immediately.

self a self-referential pointer to the mscab_decompressor instance being called
file the file to be decompressed
filename the filename of the file being written to
an error code, or MSPACK_ERR_OK if successful

Generated by  Doxygen 1.6.0   Back to index