VFS_SeekFile(
HANDLE:hVFSData,
LPVFSFUNCDATA:lpFuncData,
HANDLE:hFile,
__int64:iPos,
DWORD:dwMethod,
DWORD:dwFlags,
unsigned __int64*:piNewPos
)
→ BOOL
[in] Method of seeking in the file
| FILE_BEGIN | iPos is relative to the start of the file |
| FILE_CURRENT | iPos is relative to the current position |
| FILE_END | iPos is relative to the end of the file |
[in] Flags describing this seek operation
| VFSSEEKF_RESUME | The seek is occurring as part of a copy resume operation |
The VFS_SeekFile function is called to set the file pointer within an open file.
It is valid for this function to be called with iPos set to 0 and dwMethod set to FILE_CURRENT. In this case you should simply return the current file position in piNewPos and return TRUE.
If your function does not support random seeking you should return an error of VFSERR_NOT_SUPPORTED when appropriate. You should still endeavor to support forward seeking if possible.