In der
msdn unter WriteFile gefunden
Zitat:
nNumberOfBytesToWrite
[in] Number of bytes to be written to the file.
A value of zero specifies a null write operation. The behavior of a null write operation depends on the underlying file system. To truncate or extend a file, use the SetEndOfFile function.
Named pipe write operations across a network are limited to 65,535 bytes.