please dont rip this site Prev Next

_llseek info  Overview  Group

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

   );

Parameters

hFile
Identifies the file.
lOffset
Specifies the number of bytes the file pointer is to be moved.
iOrigin
Specifies the starting position and direction of the file pointer. This parameter must be one of the following values:

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.

Return Values

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.

Remarks

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 Also

_lopen, SetFilePointer

See:


file: /Techref/os/win/api/win32/func/src/f00_4.htm, 3KB, , updated: 2001/6/26 09:34, local time: 2024/11/4 20:03,
TOP NEW HELP FIND: 
3.133.108.103:LOG IN
©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!

 ©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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/techref/os/win/api/win32/func/src/f00_4.htm"> _llseek</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?