The GetExpandedName function retrieves the original name of a compressed file, if the file was compressed by using the Microsoft File Compression Utility (COMPRESS.EXE) and the /r option was specified.
INT GetExpandedName(
LPTSTR lpszSource, // address of name of compressed file
LPTSTR lpszBuffer // address of buffer for original filename
);
If the function succeeds, the return value is 1.
If the function fails, the return value is LZERROR_BADVALUE. There is no extended error information for this function; do not call GetLastError.
Note GetExpandedName calls neither SetLastError nor SetLastErrorEx; thus, its failure does not affect a thread's last-error code.
The contents of the buffer pointed to by the lpszBuffer parameter is the original filename if the file was compressed by using the /r option. If the /r option was not used, this function duplicates the name in the lpszSource parameter into the lpszBuffer buffer.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in lzexpand.h.
Import Library: Use lz32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Data Decompression Library Overview, Data Decompression Library Functions