win32file.GetQueuedCompletionStatus

(int, int, int, PyOVERLAPPED) = GetQueuedCompletionStatus(hPort, timeOut )

Attempts to dequeue an I/O completion packet from a specified input/output completion port.

Parameters

hPort : PyHANDLE

The handle to the completion port.

timeOut : int

Timeout in milli-seconds.

Comments

This method never throws an API error.
The result is a tuple of (rc, numberOfBytesTransferred, completionKey, overlapped)
If the function succeeds, rc will be set to 0, otherwise it will be set to the win32 error code.