int = ConnectNamedPipe(hPipe, overlapped )

Connects to a named pipe


hPipe : PyHANDLE

The handle to the pipe.

overlapped=None : PyOVERLAPPED

An overlapped object to use, else None


The result is zero if the function succeeds. If the function fails, GetLastError() is called, and if the result is ERROR_IO_PENDING or ERROR_PIPE_CONNECTED (common when passing an overlapped object), this value is returned. All other error values raise a win32 exception (from which the error code can be extracted)