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 |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | GetExpandedNameW (Unicode) and GetExpandedNameA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 4/17/2012