win32file.PostQueuedCompletionStatus
None = PostQueuedCompletionStatus(handle, numberOfbytes
, completionKey
, overlapped
)
lets you post an I/O completion packet to an I/O completion port. The I/O completion packet will satisfy an outstanding call to the GetQueuedCompletionStatus function.
Parameters
handle : PyHANDLE
handle to an I/O completion portnumberOfbytes=0 : int
value to return via GetQueuedCompletionStatus' first result
completionKey=0 : int
value to return via GetQueuedCompletionStatus' second result
overlapped=None : PyOVERLAPPED
value to return via GetQueuedCompletionStatus' third result
Comments
Note that if you post overlapped objects, but your post is closed
before all pending requests are processed, the overlapped objects
(including its 'handle' and 'object' members) will leak.
See MS KB article Q192800 for a summary of this.