Regards,
Jon Trauntvein
In my copy of the MSDN, the return value is documented as follows:
<quote>
Return Values
If the SetFilePointer function succeeds and lpDistanceToMoveHigh is NULL,
the return value is the low-order DWORD of the new file pointer. If
lpDistanceToMoveHigh is not NULL, the function returns the low order DWORD
of the new file pointer, and puts the high-order DWORD of the new file
pointer into the LONG pointed to by that parameter.
If the function fails and lpDistanceToMoveHigh is NULL, the return value is
0xFFFFFFFF. To get extended error information, call GetLastError.
If the function fails, and lpDistanceToMoveHigh is non-NULL, the return
value is 0xFFFFFFFF. However, because 0xFFFFFFFF is a valid value for the
low-order DWORD of the new file pointer, you must check GetLastError to
determine whether an error occurred. If an error occurred, GetLastError
returns a value other than NO_ERROR. For a code example that illustrates
this point, see the Remarks section later in this topic.
If the new file pointer would have been a negative value, the function
fails, the file pointer is not moved, and the code returned by GetLastError
is ERROR_NEGATIVE_SEEK.
</quote>
I don't see any mention of INVALID_SET_FILE_POINTER, and a search failed to
find this string.
NeilB
My guess is Neil has later MSDN and they "fixed" the docs rather than
the headers...
HTH
Steve
My MSDN CD is one that came with a copy of VC++ 6 I purchased sometime
mid-1999, so maybe the problem is is with more recent versions!
NeilB
- Vince
Vincent Fatica
vefa...@syr.edu
Syracuse University Mathematics
http://barnyard.syr.edu/~vefatica/