The ReadFile
and
WriteFile
functions have a parameter called
lpNumberOfByteRead,
which is documented as
__out_opt LPDWORD lpNumberOfBytesRead,
// or
__out_opt LPDWORD lpNumberOfBytesWritten,
"Cool," you think.
"That parameter is optional, and I can safely pass NULL."
My program runs fine if standard ...