网站首页  词典首页

请输入您要查询的函数:

 

术语 lzinit
释义 LZInit
语法:
C++
INT WINAPI LZInit(
__in INT hfSource
);
LZInit功能
分配内存的内部数据所需的解压缩文件的结构,然后创建并初始化它们。
参数
hfSource [in]
阿处理该文件。
返回值
如果函数成功,返回值是一个新的帠文件句柄。
如果函数失败,返回值是一个LZERROR_ *代码。这些代码都小于零的数值。请注意,LZInit要求既不SetLastError也不SetLastErrorEx,因此,它的故障不会影响线程的最后错误代码。
以下是错误代码列表LZInit可以返回时失败。
返回codeDescription
LZERROR_BADINHANDLEThe处理确定源文件是无效的。该文件无法读取。
LZERROR_GLOBALLOCThe开放的压缩文件的最大数量已超过或本地内存不能分配。
LZERROR_GLOBLOCKThe帠文件句柄不能被锁定。
LZERROR_UNKNOWNALGThe文件被压缩与识别的压缩算法。
没有此功能扩展的错误信息,不要调用GetLastError函数。
备注
一个16压缩文件最多可以公开在任何特定时间。同样,16个压缩文件,最多可开在任何特定时间。应用程序应注意关闭处理LZInit返回时,使用完的文件,否则,应用程序就会在不经意间达到16文件限制。
在处理这个函数返回是只兼容的LzExpand.dll的职能,它不应该为其他文件操作。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLzexpand.h(头文件:winuser.h)
LibraryLz32.lib
DLLLz32.dll
参见
文件压缩和解压
文件管理函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==LZInit Function
Allocates memory for the internal data structures required to decompress files, and then creates and initializes them.
Syntax
C++
INT WINAPI LZInit(
__in INT hfSource
);
Parameters
hfSource [in]
A handle to the file.
Return Value
If the function succeeds, the return value is a new LZ file handle.
If the function fails, the return value is an LZERROR_* code. These codes have values less than zero. Note that LZInit calls neither SetLastError nor SetLastErrorEx ; thus, its failure does not affect a thread's last-error code.
The following is the list of the error codes that LZInit can return upon failure.
Return codeDescription
LZERROR_BADINHANDLEThe handle identifying the source file is not valid. The file cannot be read.
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_UNKNOWNALGThe file is compressed with an unrecognized compression algorithm.

There is no extended error information for this function; do not call GetLastError .
Remarks
A maximum of 16 compressed files can be open at any given time. Similarly, a maximum of 16 uncompressed files can be open at any given time. An application should be careful to close the handle returned by LZInit when it is done using the file; otherwise, the application can inadvertently hit the 16-file limit.
The handle this function returns is compatible only with the functions in LzExpand.dll; it should not be used for other file operations.
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
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365224(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:54