Platform SDK: Files and I/O

GetExpandedName

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,  // name of compressed file
  LPTSTR lpszBuffer   // original file name
);

Parameters

lpszSource
[in] Pointer to a string that specifies the name of a compressed file.
lpszBuffer
[out] Pointer to a buffer that receives the name of the compressed file.

Return Values

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.

Remarks

The contents of the buffer pointed to by the lpszBuffer parameter is the original file name 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.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Lzexpand.h; include Windows.h.
  Library: Use Lz32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.

See Also

Data Decompression Library Overview, Data Decompression Library Functions