Performs a full featured, parameter-block write.
#include <nks/fsio.h> int NXWriteEx ( NXIo_t *ioInfo, NXAsyncId_t *ioAsyncId);
(IN) Points to the operation information on which the function executes the write operation.
(OUT) Points to the identity of the asynchronous operation. Not currently supported.
If successful, returns zero, and in the ioProcessed field of the NXIo_t structure, returns a non‑negative integer indicating the number of bytes actually written. Otherwise, returns one of the following error codes:
The NXIo_t structure is used for both reading and writing. NXIo_t contains a general description of all the fields.
The writing of data proceeds from the position in the file indicated by ioOffset and proceeds for the length maintained in each I/O record by offset. Each buffer is written completely before the next buffer is attempted. If a call to NXWriteEx requests that more bytes be written than there is room for-for example, if the call would exceed the system file size limit or the free space on the device-only as many bytes as there is room for will be written.An NXWriteEx operation also updates the modification time and the last accessed time unless the file had been created by NXFileOpenEx with the NX_OFLAG_BACKUP flag.