GetExpandedNameA function (lzexpand.h)
Retrieves the original name of a compressed file, if the file was compressed by the Lempel-Ziv algorithm.
Syntax
INT GetExpandedNameA(
[in] LPSTR lpszSource,
[out] LPSTR lpszBuffer
);
Parameters
[in] lpszSource
The name of the compressed file.
[out] lpszBuffer
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.
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.
In Windows 8 and Windows Server 2012, this function is supported by the following technologies.
Technology | Supported |
---|---|
Server Message Block (SMB) 3.0 protocol | Yes |
SMB 3.0 Transparent Failover (TFO) | Yes |
SMB 3.0 with Scale-out File Shares (SO) | Yes |
Cluster Shared Volume File System (CsvFS) | Yes |
Resilient File System (ReFS) | Yes |
Note
The lzexpand.h header defines GetExpandedName as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | lzexpand.h (include Windows.h) |
Library | Lz32.lib |
DLL | Lz32.dll |