Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.34 KB

CeSetFilePointer.md

File metadata and controls

57 lines (40 loc) · 1.34 KB

Home

Function name : CeSetFilePointer

Group: Remote Application Programming (RAPI) - Library: rapi


This function moves the file pointer of an open file.


Code examples:

Pocket PC: custom RAPI class for operating with files and folders on mobile device

Declaration:

DWORD CeSetFilePointer(
  HANDLE hFile,
  LONG lDistanceToMove,
  PLONG lpDistanceToMoveHigh,
  DWORD dwMoveMethod
);  

FoxPro declaration:

DECLARE INTEGER CeSetFilePointer IN rapi;
	INTEGER hFile,;
	LONG    lDistanceToMove,;
	LONG    lpDistanceToMoveHigh,;
	INTEGER dwMoveMethod
  

Parameters:

hFile [in] Handle to the file whose file pointer is to be moved.

lDistanceToMove [in] Low-order 32 bits of a signed value that specifies the number of bytes to move the file pointer.

lpDistanceToMoveHigh [in] Pointer to the high-order 32 bits of the signed 64-bit distance to move.

dwMoveMethod [in] Specifies the starting point for the file pointer move: bof, current, eof.


Return value:

The low-order DWORD of the new file pointer indicates success and that lpDistanceToMoveHigh is NULL.