网站首页  词典首页

请输入您要查询的函数:

 

术语 lzseek
释义 LZSeek
语法:
C++
LONG WINAPI LZSeek(
__in INT hFile,
__in LONG lOffset,
__in INT iOrigin
);
LZSeek功能
从起始位置移动文件指针指定的字节数。
参数
hFile [in]
阿处理该文件。
lOffset [in]
的字节,其中移动文件指针数目。
iOrigin [in]
该指针的起始位置。此参数必须是下列值之一。
ValueMeaning
0Moves的文件从文件的开头指针lOffset字节。
1Moves文件从当前位置指针lOffset字节。
2Moves的文件从该文件的末尾指针lOffset字节。
返回值
如果函数成功,返回值指定的偏移,从文件开始新指针的位置。
如果函数失败,返回值是一个LZERROR_ *代码。这些代码都小于零的数值。请注意,LZSeek要求既不SetLastError也不SetLastErrorEx,因此,它的故障不会影响线程的最后错误代码。
下面是错误代码的列表LZSeek可以返回时失败。
返回codeDescription
LZERROR_BADINHANDLEThe处理确定源文件是无效的。该文件无法读取。
参数的LZERROR_BADVALUEOne超出了可接受值的范围。
LZERROR_GLOBLOCKThe帠文件句柄不能被锁定。
没有此功能扩展的错误信息,不要调用GetLastError函数。
备注
在处理一些特定的hFile参数必须通过调用检索无论是LZInit或LZOpenFile功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLzexpand.h(头文件:winuser.h)
LibraryLz32.lib
DLLLz32.dll
参见
文件压缩和解压
文件管理函数
LZInit
LZOpenFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==LZSeek Function
Moves a file pointer the specified number of bytes from a starting position.
Syntax
C++
LONG WINAPI LZSeek(
__in INT hFile,
__in LONG lOffset,
__in INT iOrigin
);
Parameters
hFile [in]
A handle to the file.
lOffset [in]
The number of bytes by which to move the file pointer.
iOrigin [in]
The starting position of the pointer. This parameter must be one of the following values.
ValueMeaning
0Moves the file pointer lOffset bytes from the beginning of the file.
1Moves the file pointer lOffset bytes from the current position.
2Moves the file pointer lOffset bytes from the end of the file.

Return Value
If the function succeeds, the return value specifies the offset from the beginning of the file to the new pointer position.
If the function fails, the return value is an LZERROR_* code. These codes have values less than zero. Note that LZSeek 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 LZSeek can return upon failure.
Return codeDescription
LZERROR_BADINHANDLEThe handle identifying the source file is not valid. The file cannot be read.
LZERROR_BADVALUEOne of the parameters is outside the range of acceptable values.
LZERROR_GLOBLOCKThe LZ file handle cannot be locked down.

There is no extended error information for this function; do not call GetLastError .
Remarks
The handle identified by the hFile parameter must be retrieved by calling either the LZInit or LZOpenFile function.
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/aa365227(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:21:55