Use the SetFilePointer function to move the file pointer a specified number of bytes. Like ReadFile and WriteFile, SetFilePointer uses the handle that is returned by CreateFile in the hFile parameter to identify the file in which to move the pointer. The number of bytes that are described by the lDistanceToMove and lpDistanceToMoveHigh parameters can be relative to the beginning of the file or relative to the current position of the pointer. Set which process you prefer by using the dwMoveMethod parameter. If you pass in a positive number of bytes, SetFilePointer moves the pointer toward the end of the file. If you pass in a negative number, SetFilePointer moves the file pointer toward the beginning of the file.