| |
| BOOL WINAPI ExpandFile(
|
| |
LPCTSTR lpszInputFile, |
|
| |
LPCTSTR lpszOutputFile |
|
| );
|
The ExpandFile function expands the contents of a
previously compressed file.
Parameters
- lpszInputFile
- A pointer to a null-terminated string which specifies the name
of the file to be compressed. The file must exist, and it must be a
regular file that can be opened for reading by the current process.
An error will be returned if a character device, such as CON: is
specified as the file name.
- lpszOutputFile
- The name of the file that is to contain the expanded file data.
If the file exists, it must be a regular file that can be opened
for writing by the current process and will be overwritten. If the
file does not exist, it will be created. An error will be returned
if a character device, such as CON: is specified as the file
name.
Return Value
A non-zero value is returned if the file was successfully
expanded. A zero value indicates that the input file could not be
read or that the output file could not be created.
Remarks
The ExpandFile function can only expand files that were
previously compressed using the CompressFile function. It
cannot expand the contents of a file stored in an archive format
used by third-party applications such as PKZip or WinZip.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use csncdav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
CompressFile, DecodeFile, EncodeFile
|
|