Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Setting the File Pointer

Windows CE 3.0

Use the SetFilePointer function to move the file pointer a specified number of bytes. Like the ReadFile and WriteFile functions, SetFilePointer uses the handle that is returned by the CreateFile function in the hFile parameter to identify the file in which to move the pointer. The number of bytes that is described by the lDistanceToMove and lpDistanceToMoveHigh parameters can be relative to the beginning of the file or relative to the current position of the pointer. Specify the method to use in the dwMoveMethod parameter. If you pass in a positive number of bytes, SetFilePointer moves the file pointer toward the end of the file. If you pass in a negative number, SetFilePointer moves the file pointer toward the beginning of the file.

© 2014 Microsoft. All rights reserved.