GetExpandedName function
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.
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 |
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
GetExpandedNameW (Unicode) and GetExpandedNameA (ANSI) |
See also