When called, WriteFilecan the returned one lpNumberOfBytesWrittenbe smaller nNumberOfBytesToWritein synchronous recording mode, where the error was not executed (return is TRUE)? Writing is done to a file (not a socket, pipe, or other special descriptor). lpOverlappednot used.
WriteFile
lpNumberOfBytesWritten
nNumberOfBytesToWrite
TRUE
lpOverlapped
This is not entirely clear from the docs .
The documentation states:
The WriteFile function returns when one of the following conditions occurs:The number of bytes requested is recorded.( ). . ""., ..
The WriteFile function returns when one of the following conditions occurs:
, , . *lpNumberOfBytesWritten nNumberOfBytesToWrite, , , .
*lpNumberOfBytesWritten