Group: Remote Application Programming (RAPI) - Library: rapi
Pocket PC: custom RAPI class for operating with files and folders on mobile device
BOOL CeReadFile(
HANDLE hFile,
LPVOID lpBuffer,
DWORD nNumberOfBytesToRead,
LPDWORD lpNumberOfBytesRead,
LPOVERLAPPED lpOverlapped
);
DECLARE INTEGER CeReadFile IN rapi;
INTEGER hFile,;
STRING @ lpBuffer,;
INTEGER nBytesToRead,;
INTEGER @ lpNumberOfBytesRead,;
INTEGER lpOverlapped
hFile [in] Handle to the file to be read. The file handle must have been created with GENERIC_READ access to the file.
lpBuffer [out] Pointer to the buffer that receives the data read from the file.
nNumberOfBytesToRead [in] Number of bytes to be read from the file.
lpNumberOfBytesRead [out] Pointer to the number of bytes read.
lpOverlapped [in] Unsupported; set to NULL.
Nonzero indicates success. The CeReadFile function returns when one of the following is true: the number of bytes requested has been read or an error occurs.
See also: CeSetFilePointer, CeWriteFile and CeCloseHandle functions.