win32pipe.ConnectNamedPipe

int = ConnectNamedPipe(hPipe, overlapped )

Connects to a named pipe

Parameters

hPipe : PyHANDLE

The handle to the pipe.

overlapped=None : PyOVERLAPPED

An overlapped object to use, else None

Comments

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)