This call sets the read and blocking modes of a named pipe.
DosSetNmPHandState
Handle (HPIPE) - input
Bit
0 = Reads /Writes block if no data available.
1 = Reads/Writes return immediately if no data available.
Reads normally block until at least partial data can be returned. Writes by default block until all bytes requested have been written. Non-blocking mode (B = 1) changes this behavior as follows:
00 = Read pipe as byte stream.
01 = Read pipe as a message stream.
The read mode and blocking/non-blocking mode of a named pipe can be changed. The pipe mode can not be changed to non-blocking when another thread is blocked on an I/O to the same end of the pipe.