StormLib API Reference
DWORD WINAPI SFileSetFilePointer( HANDLE hFile, // File handle LONG lFilePos, // Low 32 bits of the file position LONG * plFilePosHigh, // Pointer to high 32 bits of the file position DWORD dwMoveMethod // The starting point for the file pointer move );
Function SFileSetFilePointer sets current position in an open file.
|The starting point is 0 (zero) or the beginning of the file.|
|The starting point is the current file pointer.|
|The starting point is the current end of file.|
When the function succeeds, it returns lower 32-bit of the file size. On an error, it returns SFILE_INVALID_SIZE and GetLastError returns an error code.
Current implementation of MPQ archives doesn't support files of size greater than 4 GB. Thus, if hFile is a handle to a file open from a MPQ and plFilePosHigh is not NULL, it must point to 0, or the function fails.
|Available in Storm.dll||Yes|
|Ordinal number in Storm.dll 1.00||82 (0x052)|
|Ordinal number in Storm.dll 1.09||271 (0x10F)|
Copyright (c) Ladislav Zezula 2003 - 2010