(IN) Specifies the number of bytes to write to the file.
data
(IN) Points to the data to write to the specified file.
Return values
0x0000
SUCCESSFUL
0x8801
INVALID_CONNECTION
0x8983
IO_ERROR_NETWORK_DISK
0x8988
INVALID_FILE_HANDLE
0x8994
NO_WRITE_PRIVILEGES_OR_READONLY
0x8995
FILE_DETACHED
0x89A2
READ_FILE_WITH_RECORD_LOCKED
0x89FF
IO_BOUND_ERROR
Notices
This function fails if the client does not have write access to the
indicated file, or if some portion of the targeted block is locked for
use by a different client.
This function does not currently buffer data. Performance is affected
by multiple short writes.