win32file.CreateIoCompletionPort

PyHANDLE = CreateIoCompletionPort(handle, existing , completionKey , numThreads )

Can associate an instance of an opened file with a newly created or an existing input/output (I/O) completion port; or it can create an I/O completion port without associating it with a file.

Parameters

handle : PyHANDLE

file handle to associate with the I/O completion port

existing : PyHANDLE

handle to the I/O completion port

completionKey : int

per-file completion key for I/O completion packets

numThreads : int

number of threads allowed to execute concurrently

Return Value

If an existing handle to a completion port is passed, the result of this function will be that same handle. See MSDN for more details.