Seite 1 von 1
Fileseek per API
Verfasst: 05.02.2005 11:07
von ts-soft
Ich möchte meine RFile Lib umstellen, so das die Fileoperationen per API gemacht werden. Dafür verwende ich die Prozeduren von GPI. Jedoch benötige ich eine FileSeek funktion.
Für entsprechende Hinweise wäre ich dankbar
gruß
Thomas
Verfasst: 05.02.2005 11:27
von DarkDragon
Vielleicht hilft dir das hier:
SetFilePointer_(hFile.l, lDistanceToMove.l, lpDistanceToMoveHigh.l, dwMoveMethod.l)
· hFile
Identifies the file whose file pointer is to be moved. The file handle must have been created with GENERIC_READ or GENERIC_WRITE access to the file.
· lDistanceToMove
Specifies the number of bytes to move the file pointer. A positive value moves the pointer forward in the file and a negative value moves it backward.
· lpDistanceToMoveHigh
Points to the high-order word of the 64-bit distance to move. If the value of this parameter is NULL, SetFilePointer can operate only on files whose maximum size is 2^32 - 2. If this parameter is specified, the maximum file size is 2^64 - 2. This parameter also receives the high-order word of the new value of the file pointer.
· dwMoveMethod
Specifies the starting point for the file pointer move. This parameter can be one of the following values:
FILE_BEGIN
The starting point is zero or the beginning of the file. If FILE_BEGIN is specified, DistanceToMove is interpreted as an unsigned location for the new file pointer.
FILE_CURRENT
The current value of the file pointer is the starting point.
FILE_END
The current end-of-file position is the starting point.
Verfasst: 05.02.2005 11:34
von ts-soft
thx das scheint die richtige Funktion zu sein.