This topic has not yet been rated - Rate this topic

GetExpandedName function

Applies to: desktop apps only

Retrieves the original name of a compressed file, if the file was compressed by the Lempel-Ziv algorithm.

Syntax

INT WINAPI GetExpandedName(
  __in   LPTSTR lpszSource,
  __out  LPTSTR lpszBuffer
);

Parameters

lpszSource [in]

The name of the compressed file.

lpszBuffer [out]

A pointer to a buffer that receives the original name of the compressed file.

Return value

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

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

LzExpand.h (include Windows.h)

Library

Lz32.lib

DLL

Lz32.dll

Unicode and ANSI names

GetExpandedNameW (Unicode) and GetExpandedNameA (ANSI)

See also

File Compression and Decompression
File Management Functions

 

 

Send comments about this topic to Microsoft

Build date: 4/17/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ