[英]Equivalent of lseek on Linux in Windows API?
Is there an equivalent of lseek
present in POSIX api on Windows? Windows上的POSIX API中是否存在与
lseek
相当的产品? I know about _lseek
with io.h
but I am looking for something with WIN32 API ie, in Windows.h
. 我知道
io.h
_lseek
,但是我正在使用WIN32 API查找东西,即Windows.h
。
如果您需要大文件支持,似乎您正在寻找SetFilePointer()或SetFilePointerEx() 。
SetFilePointer
would be what you are looking for. SetFilePointer
将是您想要的。
In general, MS's website is pretty easy to search for things, by just going to a known function (such as CreateFile
) and then going to the overview of file functions . 通常,通过访问已知功能(例如
CreateFile
)然后转到文件功能概述,MS网站非常容易搜索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.