Reading from Named Pipes

Both the server and the client processes read data from a pipe by calling DosRead. The server reads from the handle that was returned when it created the pipe with DosCreateNPipe, and the client reads from the handle that was returned to it by DosOpen.

When a pipe is created, the PipeMode parameter is used to specify both the pipe type and the read mode for the server end of the pipe: