Send a handle over a local connection.
(conn, handle, destination_pid)
| 93 | _winapi.CloseHandle(source_process_handle) |
| 94 | |
| 95 | def send_handle(conn, handle, destination_pid): |
| 96 | '''Send a handle over a local connection.''' |
| 97 | dh = DupHandle(handle, _winapi.DUPLICATE_SAME_ACCESS, destination_pid) |
| 98 | conn.send(dh) |
| 99 | |
| 100 | def recv_handle(conn): |
| 101 | '''Receive a handle over a local connection.''' |