File Decompression

The version support functions already discussed can automatically handle compressed files. Sometimes it is useful for an application to be able to decompress files independently of the version control functions. Windows provides a number of functions for this purpose.

If an application is decompressing a file, it can use the LZCopy function to accomplish this. Before using the LZCopy function, the application must open the source and destination files with the LZOpenFile function. This function is similar to the CreateFile function and returns file handles that are used by LZCopy, LZRead, and LZSeek. If a file is already opened with the CreateFile function, use that file handle with the LZInit function to obtain an equivalent ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.