网站首页  词典首页

请输入您要查询的函数:

 

术语 lzread
释义 LZRead
语法:
C++
INT WINAPI LZRead(
__in INT hFile,
__out LPSTR lpBuffer,
__in INT cbRead
);
LZRead功能
读取(最多)指定的字节从一个文件中,并把它们拷贝数到缓冲区。
参数
hFile [in]
阿处理该文件。
lpBuffer [out]
阿一个缓冲区,它接收的字节的指针从文件中读取。确保此缓冲区比cbRead大。
cbRead [in]
伯爵的字节被读取。
返回值
如果函数成功,返回值指定读取的字节数。
如果函数失败,返回值是一个LZERROR_ *代码。这些代码都小于零的数值。请注意,LZRead要求既不SetLastError也不SetLastErrorEx,因此,它的故障不会影响线程的最后错误代码。
下面是错误代码的列表LZRead可以返回时失败。
返回codeDescription
LZERROR_BADINHANDLEThe处理确定源文件是无效的。该文件无法读取。
LZERROR_BADOUTHANDLEThe处理确定目标文件是无效的。该文件不能被写入。
输入参数的LZERROR_BADVALUEOne是无效的。
LZERROR_GLOBALLOCThe开放的压缩文件的最大数量已超过或本地内存不能分配。
LZERROR_GLOBLOCKThe帠文件句柄不能被锁定。
LZERROR_READThe源文件格式不正确。
LZERROR_WRITEThere足够的空间为输出文件。
没有此功能扩展的错误信息,不要调用GetLastError函数。
备注
句柄确定文件必须通过调用检索无论是LZInit或LZOpenFile功能。
如果该文件被压缩,LZRead经营到指定的缓冲区上的文件和数据复制的字节扩展的形象。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLzexpand.h(头文件:winuser.h)
LibraryLz32.lib
DLLLz32.dll
参见
文件压缩和解压
文件管理函数
LZInit
LZOpenFile
LZSeek
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==LZRead Function
Reads (at most) the specified number of bytes from a file and copies them into a buffer.
Syntax
C++
INT WINAPI LZRead(
__in INT hFile,
__out LPSTR lpBuffer,
__in INT cbRead
);
Parameters
hFile [in]
A handle to the file.
lpBuffer [out]
A pointer to a buffer that receives the bytes read from the file. Ensure that this buffer is larger than cbRead.
cbRead [in]
The count of bytes to be read.
Return Value
If the function succeeds, the return value specifies the number of bytes read.
If the function fails, the return value is an LZERROR_* code. These codes have values less than zero. Note that LZRead calls neither SetLastError nor SetLastErrorEx ; thus, its failure does not affect a thread's last-error code.
The following is the list of error codes that LZRead 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_BADVALUEOne of the input parameters is not valid.
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.
LZERROR_WRITEThere is insufficient space for the output file.

There is no extended error information for this function; do not call GetLastError .
Remarks
The handle identifying the file must be retrieved by calling either the LZInit or LZOpenFile function.
If the file is compressed, LZRead operates on an expanded image of the file and copies the bytes of data into the specified buffer.
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
LZSeek
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365226(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:20:11