FUNCTION SysFileWrite : __XWORD
Write number of bytes to the file. File must be opened with AM_WRITE or AM_APPEND.
InOut:
|
Scope
|
Name
|
Type
|
Comment
|
Return
|
SysFileWrite
|
__XWORD
|
Number of bytes written to the file. 0=if failed
|
Input
|
hFile
|
RTS_IEC_HANDLE
|
Handle of the file
|
pbyBuffer
|
POINTER TO BYTE
|
Pointer to buffer with data to write to file
|
ulSize
|
__XWORD
|
Number of bytes to write in the file. Must be less or equal the buffer size!
|
pResult
|
POINTER TO RTS_IEC_RESULT
|
Pointer to runtime system error code (see CmpErrors.library)
|
|