It looks like ERROR_IO_PENDING is returned in the case that the file is opened for asynchronous IO, but not for synchronous files. I'm not sure why my version (#41) works with ERROR_IO_PENDING while this one works with ERROR_LOCK_VIOLATION? Either way, working tests are enough for me.
It looks like
ERROR_IO_PENDING
is returned in the case that the file is opened for asynchronous IO, but not for synchronous files. I'm not sure why my version (#41) works withERROR_IO_PENDING
while this one works withERROR_LOCK_VIOLATION
? Either way, working tests are enough for me.