Strange problem about IOCP RRS feed

  • Question

  • 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?
    • Moved by Yan-Fei Wei Monday, August 11, 2008 1:43 AM A Windows SDK issue (Moved from Visual C++ General to Off-Topic Posts (Do Not Post Here))
    Monday, August 4, 2008 2:50 AM

All replies