GetQueuedCompletionStatus在什么状况下会返回0。。。。。。。。。
请高手讲详细点啦, 问题点数:20、回复次数:2Top
1 楼click2004(大家好)回复于 2005-01-04 12:34:57 得分 2
^Top
2 楼SmallBigCat(乱花渐欲迷人眼)回复于 2005-01-04 14:10:59 得分 18
If *lpOverlapped is NULL and the function does not dequeue a completion packet from the completion port, the return value is zero. The function does not store information in the variables pointed to by the lpNumberOfBytes and lpCompletionKey parameters. To get extended error information, call GetLastError. If the function did not dequeue a completion packet because the wait timed out, GetLastError returns WAIT_TIMEOUT.
If *lpOverlapped is not NULL and the function dequeues a completion packet for a failed I/O operation from the completion port, the return value is zero. The function stores information in the variables pointed to by lpNumberOfBytes, lpCompletionKey, and lpOverlapped. To get extended error information, call GetLa stError.
If a socket handle associated with a completion port is closed, GetQueuedCompletionStatus returns ERROR_SUCCESS, with lpNumberOfBytes equal zero.
Top




