HasOverlappedIoCompleted Macro

Provides a high performance test operation that can be used to poll for the completion of an outstanding I/O operation.

Syntax

C++
BOOL HasOverlappedIoCompleted(
    LPOVERLAPPED lpOverlapped
);

Parameters

lpOverlapped

A pointer to an OVERLAPPED structure that was specified when the overlapped I/O operation was started.

Return Value

Returns TRUE if the I/O operation has completed, and FALSE otherwise.

Remarks

Do not call this macro unless the call to GetLastError returns ERROR_IO_PENDING, indicating that the overlapped I/O has started.

To cancel all pending asynchronous I/O operations, use the CancelIo function. This function only cancels operations issued by the calling thread for the specified file handle. I/O operations that are canceled complete with the error ERROR_OPERATION_ABORTED.

To get more details about a completed I/O operation, call the GetOverlappedResult or GetQueuedCompletionStatus function.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)

See Also

CancelIo
ConnectNamedPipe
OVERLAPPED
ReadFile
TransactNamedPipe
WaitCommEvent
WriteFile

Send comments about this topic to Microsoft

Build date: 10/8/2009

Tags :


Page view tracker