I am writing an xbase/b+tree database system and I am using the
Windows API for I/O. I need to use the SetFilePointer API to
position the file pointer before I do the WriteFile call. The
SetFilePointer API can take two LONG integers that specify the
byte position.
From reading past posts (using POFFS) I noticed that only the
first parameter is being passed with a LONG, the second ByVal
%NULL. This would restrict files to a size of 2,147,486,648
bytes. How can you pass a Quad Integer to the API so file sizes
could be enormous. The API alludes to the fact that it can
accept values in the QUAD range, but the API parameters are such
that you need to pass two LONGS.
Any idea how this is done??
Greatly appreciated for your time and trouble.
------------------
Paul Squires
[email protected]
Windows API for I/O. I need to use the SetFilePointer API to
position the file pointer before I do the WriteFile call. The
SetFilePointer API can take two LONG integers that specify the
byte position.
From reading past posts (using POFFS) I noticed that only the
first parameter is being passed with a LONG, the second ByVal
%NULL. This would restrict files to a size of 2,147,486,648
bytes. How can you pass a Quad Integer to the API so file sizes
could be enormous. The API alludes to the fact that it can
accept values in the QUAD range, but the API parameters are such
that you need to pass two LONGS.
Any idea how this is done??
Greatly appreciated for your time and trouble.
------------------
Paul Squires
[email protected]
Comment