pszName (PSZ) - input
msec (ULONG) - input
When a value of 0 is specified, DosWaitNPipe uses the value of msec that was specified when the pipe was created with DosCreateNPipe. When a value of -1 is specified, DosWaitNPipe waits indefinitely.
ulrc (APIRET) - returns
DosWaitNPipe returns one of the following values: