[documentation] winedev-kernel

Eric Pouech pouech-eric at wanadoo.fr
Sun Mar 13 05:37:24 CST 2005

Dmitry Timoshkov a écrit :
> "Eric Pouech" <pouech-eric at wanadoo.fr> wrote:
>>>For asynchronous read operations, hFile can be any handle opened with the
>>>FILE_FLAG_OVERLAPPED flag by the CreateFile function, or a socket handle returned
>>>by the socket or accept function.
>>which means that ReadFile() only works on socket for async reads, not sync 
>>reads. I'll precise this.
> Did you actually test this? We need a knowledge, not a speculation.
I did. See attached test and it fails on XP. Note that ReadFile works on socket 
(overlapped op), while WriteFile (synchronous operation) doesn't.

Eric Pouech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overlap.c
Type: text/x-c
Size: 6783 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050313/ebbeb251/overlap.bin

More information about the wine-devel mailing list