Group: Remote Application Programming (RAPI) - Library: rapi
Pocket PC: custom RAPI class for operating with files and folders on mobile device
BOOL CeWriteFile(
HANDLE hFile,
LPCVOID lpBuffer,
DWORD nNumberOfBytesToWrite,
LPDWORD lpNumberOfBytesWritten,
LPOVERLAPPED lpOverlapped
);
DECLARE INTEGER CeWriteFile IN rapi;
INTEGER hFile,;
STRING @ lpBuffer,;
INTEGER nBytesToWrite,;
INTEGER @ lpBytesWritten,;
INTEGER lpOverlapped
hFile [in] Handle to the file to be written to. The file handle must have been created with GENERIC_WRITE access to the file.
lpBuffer [in] Pointer to the buffer containing the data to be written to the file.
nNumberOfBytesToWrite [in] Number of bytes to write to the file.
lpNumberOfBytesWritten [out] Pointer to the number of bytes written by this function call.
lpOverlapped [in] Unsupported; set to NULL.
Nonzero indicates success.
See also: CeSetFilePointer, CeReadFile and CeCloseHandle functions.