Filter:Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NET Java
Moves to a specified position in the stream for which it was invoked.
long _stdcall StorageSeekFile(unsigned long File, long Offset, unsigned short Origin, long *Position);
long _stdcall StorageSeekFileLong(unsigned long File, long long Offset, unsigned short Origin, unsigned long long *Position);
- Offset - offset of the posision. Its value depends on Origin parameter.
- Origin - indicates how to interpret the Offset parameter. Origin should be one of the following values:
- [Plain C] File - handle to the file returned by Create function.
- [Plain C] Position - returns the new value of the position.
Values of Origin
[Pascal] [DLL] [C++ (VCL)]
Offset is from the beginning of the resource. Seek moves to the position Offset. Offset must be >= 0.
Offset is from the current position in the resource. Seek moves to Position + Offset.
Offset is from the end of the resource. Offset must be <= 0 to indicate a number of bytes before the end of the file.
The new value of the Position.
[Plain C] 0 if the function succeeded or one of Error codes if the function failed.
Call Seek to change current position in the stream.