网站首页  词典首页

请输入您要查询的函数:

 

术语 lzcopy
释义 LZCopy
语法:
C++
LONG WINAPI LZCopy(
__in INT hfSource,
__in INT hfDest
);
LZCopy功能
源文件拷贝到目标文件。如果源文件已被的Lempel - Ziv算法,该函数创建一个压缩文件解压缩的目标。如果源文件没有压缩,此功能重复的原始文件。
参数
hfSource [in]
阿处理源文件。
hfDest [in]
句柄到目标文件。
返回值
如果函数成功,返回值指定的大小,以字节为单位,目标文件。
如果函数失败,返回值是一个LZERROR_ *代码。这些代码都小于零的数值。请注意,LZCopy要求既不SetLastError也不SetLastErrorEx,因此,它的故障不会影响线程的最后错误代码。
下面是一个错误代码的列表LZCopy可以返回时失败。
返回codeDescription
LZERROR_BADINHANDLEThe处理确定源文件是无效的。该文件无法读取。
LZERROR_BADOUTHANDLEThe处理确定目标文件是无效的。该文件不能被写入。
LZERROR_GLOBALLOCThe开放的压缩文件的最大数量已超过或本地内存不能分配。
LZERROR_GLOBLOCKThe帠文件句柄不能被锁定。
LZERROR_READThe源文件格式不正确。
没有此功能扩展的错误信息,不要调用GetLastError函数。
备注
在处理确定源和目标文件必须通过调用LZInit或LZOpenFile检索功能。
如果函数成功,由hfDest参数确定的文件总是压缩。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLzexpand.h(头文件:winuser.h)
LibraryLz32.lib
DLLLz32.dll
参见
文件压缩和解压
文件管理函数
LZInit
LZOpenFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==LZCopy Function
Copies a source file to a destination file. If the source file has been compressed by the Lempel-Ziv algorithm, this function creates a decompressed destination file. If the source file is not compressed, this function duplicates the original file.
Syntax
C++
LONG WINAPI LZCopy(
__in INT hfSource,
__in INT hfDest
);
Parameters
hfSource [in]
A handle to the source file.
hfDest [in]
A handle to the destination file.
Return Value
If the function succeeds, the return value specifies the size, in bytes, of the destination file.
If the function fails, the return value is an LZERROR_* code. These codes have values less than zero. Note that LZCopy calls neither SetLastError nor SetLastErrorEx ; thus, its failure does not affect a thread's last-error code.
The following is a list of error codes that LZCopy can return upon failure.
Return codeDescription
LZERROR_BADINHANDLEThe handle identifying the source file is not valid. The file cannot be read.
LZERROR_BADOUTHANDLEThe handle identifying the destination file is not valid. The file cannot be written.
LZERROR_GLOBALLOCThe maximum number of open compressed files has been exceeded or local memory cannot be allocated.
LZERROR_GLOBLOCKThe LZ file handle cannot be locked down.
LZERROR_READThe source file format is not valid.

There is no extended error information for this function; do not call GetLastError .
Remarks
The handles identifying the source and destination files must be retrieved by calling the LZInit or LZOpenFile function.
If the function succeeds, the file identified by the hfDest parameter is always uncompressed.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLzexpand.h (include Windows.h)
LibraryLz32.lib
DLLLz32.dll
See Also
File Compression and Decompression
File Management Functions
LZInit
LZOpenFile
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365223(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 9:23:11