WindowsApi:SetFilePointerEx
lastmod 2026-11-10created 2016-04-012 edits
SetFilePointerEx is a Windows API function that moves the read/write position of an open file. It takes a file handle, a 64-bit distance to move (LARGE_INTEGER), a pointer to receive the new position, and a starting point (FILE_BEGIN, FILE_CURRENT, FILE_END) as arguments. Unlike SetFilePointer, which handles the high and low 32 bits separately, it uses a single 64-bit value, making it easier to handle files larger than 4GB, and its error checking is clearer.