You are currently viewing the documentation for:
ECF_SeekFile
ECF_SeekFile changes the position of the file cursor within a file.
ECF_ErrorCode ECF_SeekFile(
   struct ECF_FileHandle *pFileHandle,
   DWORD dwPosition
);
Parameters
pFileHandle
A pointer to an open file handle.
dwPosition
The absolute position within the file to move the file cursor to.
Return value
Returns one of the ECF error codes (ECFERR_SUCCESS on success)
Remarks
This function only moves the cursor to an absolute position within the file. If you want to move it relative to the current position or relative to the end of the file, you need to call ECF_GetFileSize() and ECF_GetFilePosition() to calculate where to move.
See also