9.3 Decompressing a Single File

An application can decompress a single compressed file by performing the following tasks:

1.Open the compressed file by calling the LZOpenFile function or a combination of the OpenFile and LZInit functions. For information about the OpenFile function, see the Microsoft Windows Programmer's Reference, Volume 2.

2.Open the destination file by calling the LZOpenFile or OpenFile function.

3.Copy the source file to the destination file by calling the LZCopy function and passing the handles returned by LZOpenFile (or LZInit).

4.Close the files by calling the LZClose function.