SetFilePointerEx v0.1.0

Source
Moves the file pointer of an open file.

Package: Windows

Microsoft documentation: SetFilePointerEx

Signature

func SetFilePointerEx(
    file: *opaque,
    distance: int64,
    newPos: *int64,
    moveMethod: SeekOrigin
) -> bool32;

Parameters

NameDescription
fileOpen seekable handle.
distanceSigned displacement from the selected origin.
newPosReceives the absolute position, or null.
moveMethodBegin, Current, or End.

Returns

bool32 — nonzero on success or zero on failure.

See also