Strange problem about IOCP
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
The same file is opened in 3 threads with FILE_FLAG_OVERLAPPED, then these 3 file handles associated to the same i/o completion port respectively. In each thread, ReadFile was called in overlapped mode(the lpOverlapped parameter is not NULL). It is strange that in WinXP, these ReadFile always return TRUE, means they complete synchronously, but in Vista, these ReadFile always return FALSE,and GetLastError returns ERROR_IO_PENDING. Can I get these ReadFile asynchronously in XP? Thanks :-D
A Chinese VC++ programmer