Platform SDK: Files and I/O |
Applications can call the functions in LZEXPAND.DLL to decompress files compressed by using COMPRESS.EXE. The functions can also process uncompressed files without attempting to decompress them.
The following table describes each function found in LZEXPAND.DLL.
Function | Purpose |
---|---|
CopyLZFile | This function is obsolete. It is provided to simplify porting of 16-bit Windows-based applications. Win32-based applications should use the LZCopy function. |
GetExpandedName | Retrieves the original name of a compressed file, if the /r option was used during compression of the file. |
LZClose | Closes a file that was opened when the application called the LZOpenFile function. |
LZCopy | Copies a source file to a destination file. If the source file is compressed, this function creates a decompressed destination file. If the source file is not compressed, this function duplicates the original file. This function is intended for single-file copy operations. |
LZDone | This function is obsolete and should not be used in Win32-based applications. It is provided to simplify porting of 16-bit Windows-based applications. |
LZInit | Creates structures used for decompressing files. |
LZOpenFile | Opens a file and returns a handle that identifies it. |
LZRead | Reads a specified number of bytes from a file. If the file is compressed, this function decompresses the bytes before copying them to the destination buffer. |
LZSeek | Positions the file pointer within the decompressed image of a compressed file. The application calls this function to position the pointer before calling the LZRead function. |
LZStart | This function is obsolete and should not be used in Win32-based applications. It is provided to simplify porting of 16-bit Windows-based applications. |