The _llseek function repositions the file pointer in a previously opened file. This function is provided for compatibility with 16-bit versions of Windows. Win32-based applications should use the SetFilePointer function.
LONG _llseek(
HFILE hFile, |
// handle to file |
LONG lOffset, |
// number of bytes to move |
int iOrigin |
// position to move from |
); |
Value |
Meaning |
FILE_BEGIN |
Moves the file pointer lOffset bytes from the beginning of the file. |
FILE_CURRENT |
Moves the file pointer lOffset bytes from its current position. |
FILE_END |
Moves the file pointer lOffset bytes from the end of the file. |
If the function succeeds, the return value specifies the new offset of the pointer, in bytes, from the beginning of the file.
If the function fails, the return value is HFILE_ERROR. To get extended error information, call GetLastError.
When a file is initially opened, the file pointer is set to the beginning of the file. The _llseek function moves the pointer an arbitrary amount without reading data, which facilitates random access to the file’s contents.
See:
file: /Techref/os/win/api/win32/func/src/f00_4.htm, 3KB, , updated: 2001/6/26 09:34, local time: 2024/11/23 20:52,
18.216.145.37:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f00_4.htm"> _llseek</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.