0 on success, or -1 with last error set on failure.Associate a handle with the IOCP for overlapped I/O.
This binds a handle to the completion port so that overlapped I/O operations on the handle will generate completion notifications.
handle | The native Windows handle to associate. |
completionKey | Opaque value returned with completions for this handle. |
0 on success, or -1 with last error set on failure.