Moves the file pointer of the indicated file.
BOOLEAN SetRtFilePointer(
RTHANDLE hFile,
int64_t qiDistanceToMove,
LPQWORD lpqwNewFilePointer,
DWORD dwMoveMethod);
hFile
qiDistanceToMove
lpqwNewFilePointer
FILE_BEGIN |
The starting point is zero, or the beginning of the file. In this case the qiDistanceToMove value is interpreted as an unsigned quantity. |
FILE_CURRENT |
The start point is the current pointer value. |
FILE_END |
The starting point is the current end-of-file location. |
Note that it is not an error to set the file pointer to a position beyond the end of the file. The size of the file does not increase until you call the SetEndOfRtFile or WriteRtFile function. A write operation increases the size of the file to the file pointer position plus the size of the buffer written, leaving the intervening bytes uninitialized. You can also use SetRtFilePointer to query the current file pointer position. To do this, specify a move method of FILE_CURRENT and a distance of zero.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |