CascLib API Reference
CascSetFilePointer(64)
DWORD WINAPI CascSetFilePointer(
HANDLE hFile, // Handle to an open file
LONG lFilePos, // Low 32-bits of the bytes to move
LONG * PtrFilePosHigh, // Optional pointer to high 32-bits of the file position
DWORD dwMoveMethod // Seek method
);
bool WINAPI CascSetFilePointer64(
HANDLE hFile, // Handle to an open file
LONGLONG DistanceToMove, // Number of bytes to move
PULONGLONG PtrNewPos, // Pointer to a 64-bit variable that receives the new file pointer
DWORD dwMoveMethod // Seek method
);
Functions CascSetFilePointer and CascSetFilePointer64 change the current read position within an open CASC file. The function CascSetFilePointer64 is available since CascLib version 1.60
| Open Flag | Meaning |
|---|---|
| FILE_BEGIN (0) |
The starting point is zero or the beginning of the file. |
| FILE_CURRENT (1) |
The start point is the current value of the file pointer. |
| FILE_END (2) |
The starting point is the current end-of-file position. |
On success, the function returns lower 32-bits of the new file position. CASC_INVALID_POS and GetLastError() returns an error code.
On success, the function returns true.
On failure, the function false and GetLastError() returns an error code.
Copyright (c) Ladislav Zezula 2019